all: fix -gc=none

This option was broken for a long time, in part because we didn't test
for it. This commit fixes that and adds a test to make sure it won't
break again unnoticed.
This commit is contained in:
Ayke van Laethem
2020-07-12 19:25:36 +02:00
committed by Ron Evans
parent d606315515
commit 05495c4282
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -335,6 +335,11 @@ endif
@$(MD5SUM) test.hex
$(TINYGO) build -o wasm.wasm -target=wasm examples/wasm/export
$(TINYGO) build -o wasm.wasm -target=wasm examples/wasm/main
# test various compiler flags
$(TINYGO) build -size short -o test.hex -target=pca10040 -gc=none -scheduler=none examples/blinky1
@$(MD5SUM) test.hex
$(TINYGO) build -size short -o test.hex -target=pca10040 -opt=1 examples/blinky1
@$(MD5SUM) test.hex
wasmtest:
$(GO) test ./tests/wasm