mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
update VERSION to 0.9.27
Also: - in tests: generate .expect files only if not yet present, because 1) some files were adjusted manually 2) switching git branche might change timestamps and cause unwanted update
This commit is contained in:
parent
aa0a45be05
commit
5efa75d9b8
@ -31,11 +31,11 @@ FILTER = 2>&1 | sed 's,$(SRC)/,,g'
|
|||||||
&& rm -f $*.output
|
&& rm -f $*.output
|
||||||
|
|
||||||
# automatically generate .expect files with gcc:
|
# automatically generate .expect files with gcc:
|
||||||
%.expect: %.c
|
%.expect: # %.c
|
||||||
$(CC) -E -P $< >$*.expect 2>&1
|
gcc -E -P $< >$*.expect 2>&1
|
||||||
|
|
||||||
%.expect: %.S
|
%.expect: # %.S
|
||||||
$(CC) -E -P $< >$*.expect 2>&1
|
gcc -E -P $< >$*.expect 2>&1
|
||||||
|
|
||||||
# tell make not to delete
|
# tell make not to delete
|
||||||
.PRECIOUS: %.expect
|
.PRECIOUS: %.expect
|
||||||
|
@ -62,7 +62,7 @@ all test: $(filter-out $(SKIP),$(TESTS))
|
|||||||
@diff -Nbu $(SRC)/$*.expect $*.output && rm -f $*.output $*.exe
|
@diff -Nbu $(SRC)/$*.expect $*.output && rm -f $*.output $*.exe
|
||||||
|
|
||||||
# automatically generate .expect files with gcc:
|
# automatically generate .expect files with gcc:
|
||||||
%.expect : %.c
|
%.expect : # %.c
|
||||||
(gcc -w $*.c -o a.exe && ./a.exe $(ARGS)) $(FILTER) >$*.expect 2>&1; rm -f a.exe
|
(gcc -w $*.c -o a.exe && ./a.exe $(ARGS)) $(FILTER) >$*.expect 2>&1; rm -f a.exe
|
||||||
|
|
||||||
# tell make not to delete
|
# tell make not to delete
|
||||||
|
Loading…
Reference in New Issue
Block a user