http://repo.or.cz/w/tinycc.git/commit/86ffc4812952f11a35afa19b24a3e6d1a12f4490 removed this cp command. However, it was necessary to pass tests on x86-64 because include/stdarg.h is different from GCC's definition on x86-64.
Unified · Split
| @@ -39,8 +39,10 @@ libtcc_test$(EXESUF): libtcc_test.c ../$(LIBTCC) · 38 unmodified lines | |||
| 39 | $(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC) | 39 | $(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC) |
| 40 | 40 | ||
| 41 | # test.ref - generate using gcc | 41 | # test.ref - generate using gcc |
| 42 | # copy only tcclib.h so GCC's stddef and stdarg will be used | ||
| 42 | test.ref: tcctest.c | 43 | test.ref: tcctest.c |
| 43 | $(CC) -o tcctest.gcc $< -w $(CFLAGS) -I../include | 44 | cp -u ../include/tcclib.h . |
| 45 | $(CC) -o tcctest.gcc $< -I. -w $(CFLAGS) | ||
| 44 | ./tcctest.gcc > $@ | 46 | ./tcctest.gcc > $@ |
| 45 | 47 | ||
| 46 | # auto test | 48 | # auto test |