tests: don't assume $(CC) is gcc
This also allows self hosting + testing when $(CC) is tcc.
This commit is contained in:
@ -32,10 +32,10 @@ FILTER = 2>&1 | sed 's,$(SRC)/,,g'
|
|||||||
|
|
||||||
# automatically generate .expect files with gcc:
|
# automatically generate .expect files with gcc:
|
||||||
%.expect: %.c
|
%.expect: %.c
|
||||||
gcc -E -P $< >$*.expect 2>&1
|
$(CC) -E -P $< >$*.expect 2>&1
|
||||||
|
|
||||||
%.expect: %.S
|
%.expect: %.S
|
||||||
gcc -E -P $< >$*.expect 2>&1
|
$(CC) -E -P $< >$*.expect 2>&1
|
||||||
|
|
||||||
# tell make not to delete
|
# tell make not to delete
|
||||||
.PRECIOUS: %.expect
|
.PRECIOUS: %.expect
|
||||||
|
|||||||
Reference in New Issue
Block a user