From 6c81b110be58975090157db4b4dee77fd50f871e Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 29 Oct 2018 07:20:33 +0000 Subject: [PATCH] Tests: use cc instead of gcc. This fixes problems where llvm is installed without a 'gcc' alias. --- t/110-compile/CC.do | 2 +- t/110-compile/LD.do | 2 +- t/110-compile/yellow.o.do | 2 +- t/111-compile2/CC.do | 2 +- t/111-compile2/hello.do | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/t/110-compile/CC.do b/t/110-compile/CC.do index 3dbc6a2..1f40b2e 100644 --- a/t/110-compile/CC.do +++ b/t/110-compile/CC.do @@ -1,5 +1,5 @@ exec >$3 cat <<-EOF - gcc -Wall -o /dev/fd/1 -c "\$1" + cc -Wall -o /dev/fd/1 -c "\$1" EOF chmod a+x $3 diff --git a/t/110-compile/LD.do b/t/110-compile/LD.do index e116a0b..2dac2e9 100644 --- a/t/110-compile/LD.do +++ b/t/110-compile/LD.do @@ -2,6 +2,6 @@ exec >$3 cat <<-EOF OUT="\$1" shift - gcc -Wall -o "\$OUT" "\$@" + cc -Wall -o "\$OUT" "\$@" EOF chmod a+x $3 diff --git a/t/110-compile/yellow.o.do b/t/110-compile/yellow.o.do index 8769f56..9b317b7 100644 --- a/t/110-compile/yellow.o.do +++ b/t/110-compile/yellow.o.do @@ -1,3 +1,3 @@ redo-ifchange CC hello.c ../sleep 2 -gcc -o $3 -c hello.c +cc -o $3 -c hello.c diff --git a/t/111-compile2/CC.do b/t/111-compile2/CC.do index ebb9103..177fe41 100644 --- a/t/111-compile2/CC.do +++ b/t/111-compile2/CC.do @@ -3,7 +3,7 @@ redo-ifchange config.sh exec >$3 cat <<-EOF 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 rm -f \$3.deps redo-ifchange \${DEPS#*:} diff --git a/t/111-compile2/hello.do b/t/111-compile2/hello.do index 330290e..db35184 100644 --- a/t/111-compile2/hello.do +++ b/t/111-compile2/hello.do @@ -1,4 +1,4 @@ DEPS="main.o mystr.o" redo-ifchange $DEPS -gcc -o $3 $DEPS +cc -o $3 $DEPS