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

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.
This commit is contained in:
Shinichiro Hamaji
2010-12-07 03:04:45 +09:00
parent 33f86ada92
commit f2d7998a96
+3 -1
View File
@@ -39,8 +39,10 @@ libtcc_test$(EXESUF): libtcc_test.c ../$(LIBTCC)
$(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC)
# test.ref - generate using gcc
# copy only tcclib.h so GCC's stddef and stdarg will be used
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 > $@
# auto test