History

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.

Shinichiro Hamaji committed 15 years ago

Commit f2d79981 parent 33f86ad1 file · +3 −1Browse files

Unified · Split

tests/Makefile+3−1
@@ -39,8 +39,10 @@ libtcc_test$(EXESUF): libtcc_test.c ../$(LIBTCC) · 38 unmodified lines
39 $(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC)39 $(CC) -o $@ $^ -I.. $(CFLAGS) $(LIBS) $(LINK_LIBTCC)
40 40
41# test.ref - generate using gcc41# test.ref - generate using gcc
42# copy only tcclib.h so GCC's stddef and stdarg will be used
42test.ref: tcctest.c43test.ref: tcctest.c
43 $(CC) -o tcctest.gcc $< -w $(CFLAGS) -I../include 44 cp -u ../include/tcclib.h .
45 $(CC) -o tcctest.gcc $< -I. -w $(CFLAGS)
44 ./tcctest.gcc > $@46 ./tcctest.gcc > $@
45 47
46# auto test48# auto test

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t