tests: don't assume $(CC) is gcc
This also allows self hosting + testing when $(CC) is tcc.
This commit is contained in:
parent
71c5ce5ced
commit
9b3e4c5895
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue