apenwarr-redo/t/111-compile2/CC.do
Avery Pennarun 6c81b110be Tests: use cc instead of gcc.
This fixes problems where llvm is installed without a 'gcc' alias.
2018-10-29 07:20:33 +00:00

11 lines
204 B
Text

redo-ifchange config.sh
. ./config.sh
exec >$3
cat <<-EOF
redo-ifchange \$2.c
cc $CFLAGS -MD -MF \$3.deps -o \$3 -c \$2.c
read DEPS <\$3.deps
rm -f \$3.deps
redo-ifchange \${DEPS#*:}
EOF
chmod +x $3