From a3d87456cdf00fe46be5c51d39cf19bf6ae0e781 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Sat, 27 Oct 2018 16:44:09 -0400 Subject: [PATCH] tinygo: add 'tinygo' build tag This enables project to conditionally skip code that can't compile on tinygo. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8d845b0a..467b3be9 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act DumpSSA: config.dumpSSA, RootDir: sourceDir(), GOPATH: getGopath(), - BuildTags: spec.BuildTags, + BuildTags: append(spec.BuildTags, "tinygo"), } c, err := compiler.NewCompiler(pkgName, compilerConfig) if err != nil {