diff options
| author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2010-12-07 03:01:14 +0900 |
|---|---|---|
| committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2010-12-07 03:04:45 +0900 |
| commit | f2d7998a967e2aa944686abb4f3930d27b03ffef (patch) | |
| tree | 69a639c9654f90d4319802764c20c4ada0c5269c /tests | |
| parent | 33f86ada92cdd25864e37947ecd487f567ee6782 (diff) | |
| download | tinycc-f2d7998a967e2aa944686abb4f3930d27b03ffef.tar.gz tinycc-f2d7998a967e2aa944686abb4f3930d27b03ffef.tar.bz2 | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile index d7e94b9..017f35c 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 |
