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.
master
Shinichiro Hamaji 2010-12-07 03:01:14 +09:00
parent 33f86ada92
commit f2d7998a96
1 changed files with 3 additions and 1 deletions

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