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
3636 tcctest[1234]
3737 test[1234].out
3838 tests/tcclib.h
39−tests/tcctest.gcc
39+tests/tcctest.cc
4040 tests/weaktest.*.o.txt
4141 tests/tests2/fred.txt
4242 tests/hello
tests/Makefile+7−7
@@ -103,10 +103,10 @@ moretests: · 102 unmodified lines
103103 w32-prep:
104104 cp ../libtcc1.a ../lib
105105
106−# test.ref - generate using gcc
106+# test.ref - generate using cc
107107 test.ref: tcctest.c
108− gcc -o tcctest.gcc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS)
109− ./tcctest.gcc > $@
108+ $(CC) -o tcctest.cc $< -I$(top_srcdir) $(CPPFLAGS) -w $(CFLAGS) $(NATIVE_DEFINES) -std=gnu99 -O0 -fno-omit-frame-pointer $(LDFLAGS)
109+ ./tcctest.cc > $@
110110
111111 # auto test
112112 test1 test1b: tcctest.c test.ref
@@ -183,10 +183,10 @@ speedtest: ex2 ex3 · 70 unmodified lines
183183
184184 weaktest: tcctest.c test.ref
185185 $(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)
187187 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.txt
189− diff weaktest.gcc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK"
188+ 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.cc.o.txt weaktest.tcc.o.txt && echo "Weak Auto Test OK"
190190
191191 ex%: $(top_srcdir)/examples/ex%.c
192192 $(CC) -o $@ $< $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
@@ -239,6 +239,6 @@ cache: tcc_g · 46 unmodified lines
239239 # clean
240240 clean:
241241 $(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 \
243243 hello libtcc_test tcctest[1234] ex? tcc_g tcclib.h \
244244 ../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