History

force i386-win32-tcc.exe to be a 32bit binary. Run tests in both 32/64 bits on Windows.

U-NELSON\jullien committed 9 years ago

Commit 3e4b7691 parent 2a348891 file · +5 −1Browse files

Unified · Split

win32/Makefile+5−1
@@ -104,7 +104,7 @@ rebuild: · 103 unmodified lines
104104 @echo Rebuild using tcc itself - default $(TARGET)bits
105105 @./$(TARCH)-win32-tcc $(TFLAGS) -DTCC_TARGET_PE -DONE_SOURCE -o tcc.exe ../tcc.c
106106 @./tcc $(TFLAGS) -DTCC_TARGET_PE -DONE_SOURCE -DLIBTCC_AS_DLL -o libtcc.dll -shared ../libtcc.c
107− @./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
107+ @./tcc -m32 -DTCC_TARGET_PE -DONE_SOURCE -DTCC_TARGET_I386 -o tmp-tcc.exe ../tcc.c && mv tmp-tcc.exe i386-win32-tcc.exe
108108 @./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
109109
110110 PHONY += rebuild
@@ -112,6 +112,10 @@ PHONY += rebuild · 1 unmodified line
112112 test:
113113 @(cd ../tests; $(MAKE) -k TCC=$(PWD)/tcc hello-exe hello-run)
114114 @(cd ../tests; $(MAKE) -k TCC=$(PWD)/tcc vla_test-run tests2-dir pp-dir)
115+ifeq ($(CPU), 64)
116+ @(cd ../tests; $(MAKE) -k TCC=$(PWD)/i386-win32-tcc hello-exe hello-run)
117+ @(cd ../tests; $(MAKE) -k TCC=$(PWD)/i386-win32-tcc vla_test-run tests2-dir pp-dir)
118+endif
115119
116120 PHONY += test
117121

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