History

Don't hardcode gcc in tests Makefile

Thomas Preud'homme committed 12 years ago

Commit d3d89901 parent 62d1da12 files · +8 −8Browse files

Unified · Split

2 files
  1. .gitignore +1 −1
  2. tests/Makefile +7 −7
.gitignore+1−1
@@ -36,7 +36,7 @@ p2.c · 35 unmodified lines
36tcctest[1234]36tcctest[1234]
37test[1234].out37test[1234].out
38tests/tcclib.h38tests/tcclib.h
39tests/tcctest.gcc39tests/tcctest.cc
40tests/weaktest.*.o.txt40tests/weaktest.*.o.txt
41tests/tests2/fred.txt41tests/tests2/fred.txt
42tests/hello42tests/hello
tests/Makefile+7−7
@@ -103,10 +103,10 @@ moretests: · 102 unmodified lines
103w32-prep:103w32-prep:
104 cp ../libtcc1.a ../lib104 cp ../libtcc1.a ../lib
105 105
106# test.ref - generate using gcc106# test.ref - generate using cc
107test.ref: tcctest.c107test.ref: tcctest.c
108 gcc -o tcctest.gcc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS)108 $(CC) -o tcctest.cc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS)
109 ./tcctest.gcc > $@109 ./tcctest.cc > $@
110 110
111# auto test111# auto test
112test1 test1b: tcctest.c test.ref112test1 test1b: tcctest.c test.ref
@@ -183,10 +183,10 @@ speedtest: ex2 ex3 · 70 unmodified lines
183 183
184weaktest: tcctest.c test.ref184weaktest: tcctest.c test.ref
185 $(TCC) -c $< -o weaktest.tcc.o $(CPPFLAGS) $(CFLAGS)185 $(TCC) -c $< -o weaktest.tcc.o $(CPPFLAGS) $(CFLAGS)
186 $(CC) -c $< -o weaktest.gcc.o -I. $(CPPFLAGS) -w $(CFLAGS)186 $(CC) -c $< -o weaktest.cc.o -I. $(CPPFLAGS) -w $(CFLAGS)
187 objdump -t weaktest.tcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.tcc.o.txt187 objdump -t weaktest.tcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.tcc.o.txt
188 objdump -t weaktest.gcc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.gcc.o.txt188 objdump -t weaktest.cc.o | grep ' w ' | sed -e 's/.* \([a-zA-Z0-9_]*\)$$/\1/' | LC_ALL=C sort > weaktest.cc.o.txt
189 diff weaktest.gcc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK"189 diff weaktest.cc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK"
190 190
191ex%: $(top_srcdir)/examples/ex%.c191ex%: $(top_srcdir)/examples/ex%.c
192 $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)192 $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
@@ -239,6 +239,6 @@ cache: tcc_g · 46 unmodified lines
239# clean239# clean
240clean:240clean:
241 $(MAKE) -C tests2 $@241 $(MAKE) -C tests2 $@
242 rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.gcc *.exe \242 rm -vf *~ *.o *.a *.bin *.i *.ref *.out *.out? *.out?b *.cc *.exe \
243 hello libtcc_test tcctest[1234] ex? tcc_g tcclib.h \243 hello libtcc_test tcctest[1234] ex? tcc_g tcclib.h \
244 ../lib/libtcc1.a244 ../lib/libtcc1.a

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