Tests: use cc instead of gcc.
This fixes problems where llvm is installed without a 'gcc' alias.
This commit is contained in:
parent
0fc2e46708
commit
6c81b110be
5 changed files with 5 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
exec >$3
|
exec >$3
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
gcc -Wall -o /dev/fd/1 -c "\$1"
|
cc -Wall -o /dev/fd/1 -c "\$1"
|
||||||
EOF
|
EOF
|
||||||
chmod a+x $3
|
chmod a+x $3
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@ exec >$3
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
OUT="\$1"
|
OUT="\$1"
|
||||||
shift
|
shift
|
||||||
gcc -Wall -o "\$OUT" "\$@"
|
cc -Wall -o "\$OUT" "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod a+x $3
|
chmod a+x $3
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
redo-ifchange CC hello.c
|
redo-ifchange CC hello.c
|
||||||
../sleep 2
|
../sleep 2
|
||||||
gcc -o $3 -c hello.c
|
cc -o $3 -c hello.c
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ redo-ifchange config.sh
|
||||||
exec >$3
|
exec >$3
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
redo-ifchange \$2.c
|
redo-ifchange \$2.c
|
||||||
gcc $CFLAGS -MD -MF \$3.deps -o \$3 -c \$2.c
|
cc $CFLAGS -MD -MF \$3.deps -o \$3 -c \$2.c
|
||||||
read DEPS <\$3.deps
|
read DEPS <\$3.deps
|
||||||
rm -f \$3.deps
|
rm -f \$3.deps
|
||||||
redo-ifchange \${DEPS#*:}
|
redo-ifchange \${DEPS#*:}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
DEPS="main.o
|
DEPS="main.o
|
||||||
mystr.o"
|
mystr.o"
|
||||||
redo-ifchange $DEPS
|
redo-ifchange $DEPS
|
||||||
gcc -o $3 $DEPS
|
cc -o $3 $DEPS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue