tinygo: add 'tinygo' build tag

This enables project to conditionally skip code that can't compile on tinygo.
This commit is contained in:
Marc-Antoine Ruel
2018-10-27 16:44:09 -04:00
parent 436901dc49
commit a3d87456cd
+1 -1
View File
@@ -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 {