Copy tcclib.h to tests directory so GCC uses its own headers.

86ffc48129

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.
This commit is contained in:
Shinichiro Hamaji 2010-12-07 03:01:14 +09:00
parent 33f86ada92
commit f2d7998a96

View File

@ -39,8 +39,10 @@ libtcc_test$(EXESUF): libtcc_test.c ../$(LIBTCC)
$(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC) $(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC)
# test.ref - generate using gcc # test.ref - generate using gcc
# copy only tcclib.h so GCC's stddef and stdarg will be used
test.ref: tcctest.c test.ref: tcctest.c
$(CC) -o tcctest.gcc $< -w $(CFLAGS) -I../include cp -u ../include/tcclib.h .
$(CC) -o tcctest.gcc $< -I. -w $(CFLAGS)
./tcctest.gcc > $@ ./tcctest.gcc > $@
# auto test # auto test