aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU-NELSON\jullien <jullien@nelson.eligis.com>2017-06-05 08:18:11 +0200
committerU-NELSON\jullien <jullien@nelson.eligis.com>2017-06-05 08:18:11 +0200
commit3e4b7693bfd5b76570b35558c83a935326513eff (patch)
treeae1512479f32344042020a24fa9f92eb5e42ab2e
parent2a348896dd10f2c53815a7a6a42e38b9554f3a20 (diff)
downloadtinycc-3e4b7693bfd5b76570b35558c83a935326513eff.tar.gz
tinycc-3e4b7693bfd5b76570b35558c83a935326513eff.tar.bz2
force i386-win32-tcc.exe to be a 32bit binary. Run tests in both 32/64 bits on Windows.
-rw-r--r--win32/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/win32/Makefile b/win32/Makefile
index b55f970..6a56dcd 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -104,7 +104,7 @@ rebuild:
@echo Rebuild using tcc itself - default $(TARGET)bits
@./$(TARCH)-win32-tcc $(TFLAGS) -DTCC_TARGET_PE -DONE_SOURCE -o tcc.exe ../tcc.c
@./tcc $(TFLAGS) -DTCC_TARGET_PE -DONE_SOURCE -DLIBTCC_AS_DLL -o libtcc.dll -shared ../libtcc.c
- @./tcc -m$(TARGET) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe i386-win32-tcc.exe
+ @./tcc -m32 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe i386-win32-tcc.exe
@./tcc -m$(TARGET) -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_X86_64 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe x86_64-win32-tcc.exe
PHONY += rebuild
@@ -112,6 +112,10 @@ PHONY += rebuild
test:
@(cd ../tests; $(MAKE) -k TCC=$(PWD)/tcc hello-exe hello-run)
@(cd ../tests; $(MAKE) -k TCC=$(PWD)/tcc vla_test-run tests2-dir pp-dir)
+ifeq ($(CPU), 64)
+ @(cd ../tests; $(MAKE) -k TCC=$(PWD)/i386-win32-tcc hello-exe hello-run)
+ @(cd ../tests; $(MAKE) -k TCC=$(PWD)/i386-win32-tcc vla_test-run tests2-dir pp-dir)
+endif
PHONY += test