From 8333c171f4a2ec8570a93587e61e1adf65ec04bc Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 5 Apr 2020 18:08:58 +0200 Subject: [PATCH] hifive1-qemu: fix compile error and add smoke test This probably got broken with this PR: https://github.com/tinygo-org/tinygo/pull/976 --- Makefile | 2 ++ src/runtime/runtime_tinygoriscv_qemu.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e16f225a..9a322419 100644 --- a/Makefile +++ b/Makefile @@ -214,6 +214,8 @@ smoketest: # test simulated boards on play.tinygo.org $(TINYGO) build -o test.wasm -tags=arduino examples/blinky1 @$(MD5SUM) test.wasm + $(TINYGO) build -o test.wasm -tags=hifive1-qemu examples/serial + @$(MD5SUM) test.wasm $(TINYGO) build -o test.wasm -tags=hifive1b examples/blinky1 @$(MD5SUM) test.wasm $(TINYGO) build -o test.wasm -tags=reelboard examples/blinky1 diff --git a/src/runtime/runtime_tinygoriscv_qemu.go b/src/runtime/runtime_tinygoriscv_qemu.go index d7527841..1155d553 100644 --- a/src/runtime/runtime_tinygoriscv_qemu.go +++ b/src/runtime/runtime_tinygoriscv_qemu.go @@ -1,4 +1,4 @@ -// +build tinygo.riscv,qemu +// +build tinygo.riscv,virt,qemu package runtime