mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
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:
parent
33f86ada92
commit
f2d7998a96
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user