From 26ffb6a4be97707c8905e5dc63fad5eca472d837 Mon Sep 17 00:00:00 2001 From: Laurent Demailly Date: Wed, 7 Aug 2024 18:31:44 -0700 Subject: [PATCH] works on linux if built first --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a4c7301..bd7d2a9 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,10 @@ GO_BUILD_TAGS:=no_net,no_json,no_pprof demo: go run -tags $(GO_BUILD_TAGS) ./example/ -loglevel debug -tinygo-run: - # No luck https://github.com/tinygo-org/tinygo/issues/4395 - CGO_ENABLED=0 tinygo run -tags $(GO_BUILD_TAGS) ./example +tinygo-demo: + # No luck on mac https://github.com/tinygo-org/tinygo/issues/4395 + CGO_ENABLED=0 tinygo build -tags $(GO_BUILD_TAGS) -o example-tinygo ./example/ + ./example-tinygo -loglevel debug test: CGO_ENABLED=0 go test -tags $(GO_BUILD_TAGS) ./...