Skip to content

Commit 2097544

Browse files
committed
make: use GOOS and GOARCH for building wasm simulated boards
Signed-off-by: deadprogram <[email protected]>
1 parent b0aef96 commit 2097544

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

GNUmakefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -569,21 +569,21 @@ smoketest: testchdir
569569
@$(MD5SUM) test.hex
570570
# test simulated boards on play.tinygo.org
571571
ifneq ($(WASM), 0)
572-
$(TINYGO) build -size short -o test.wasm -tags=arduino examples/blinky1
572+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=arduino examples/blinky1
573573
@$(MD5SUM) test.wasm
574-
$(TINYGO) build -size short -o test.wasm -tags=hifive1b examples/blinky1
574+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=hifive1b examples/blinky1
575575
@$(MD5SUM) test.wasm
576-
$(TINYGO) build -size short -o test.wasm -tags=reelboard examples/blinky1
576+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=reelboard examples/blinky1
577577
@$(MD5SUM) test.wasm
578-
$(TINYGO) build -size short -o test.wasm -tags=microbit examples/microbit-blink
578+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=microbit examples/microbit-blink
579579
@$(MD5SUM) test.wasm
580-
$(TINYGO) build -size short -o test.wasm -tags=circuitplay_express examples/blinky1
580+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=circuitplay_express examples/blinky1
581581
@$(MD5SUM) test.wasm
582-
$(TINYGO) build -size short -o test.wasm -tags=circuitplay_bluefruit examples/blinky1
582+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=circuitplay_bluefruit examples/blinky1
583583
@$(MD5SUM) test.wasm
584-
$(TINYGO) build -size short -o test.wasm -tags=mch2022 examples/machinetest
584+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=mch2022 examples/machinetest
585585
@$(MD5SUM) test.wasm
586-
$(TINYGO) build -size short -o test.wasm -tags=gopher_badge examples/blinky1
586+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=gopher_badge examples/blinky1
587587
@$(MD5SUM) test.wasm
588588
endif
589589
# test all targets/boards

0 commit comments

Comments
 (0)