From f2d7998a967e2aa944686abb4f3930d27b03ffef Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Tue, 7 Dec 2010 03:01:14 +0900 Subject: [PATCH] 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. --- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index d7e94b9f..017f35cf 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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