tests: don't assume $(CC) is gcc

This also allows self hosting + testing when $(CC) is tcc.
master
Avi Halachmi (:avih) 2016-12-24 20:59:06 +02:00
parent 71c5ce5ced
commit 9b3e4c5895
1 changed files with 2 additions and 2 deletions

View File

@ -32,10 +32,10 @@ FILTER = 2>&1 | sed 's,$(SRC)/,,g'
# automatically generate .expect files with gcc:
%.expect: %.c
gcc -E -P $< >$*.expect 2>&1
$(CC) -E -P $< >$*.expect 2>&1
%.expect: %.S
gcc -E -P $< >$*.expect 2>&1
$(CC) -E -P $< >$*.expect 2>&1
# tell make not to delete
.PRECIOUS: %.expect