aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-11-17 14:36:41 +0100
committerAyke van Laethem <[email protected]>2018-11-17 14:36:41 +0100
commit21db7e60995bc7e894bc19a93e143c3f26eb9569 (patch)
tree5a1477b3ca777418f597c3e8bb78d4edbf80e333 /main.go
parent15a4afb22a439bcc388d83754c031f5ba00e352d (diff)
downloadtinygo-21db7e60995bc7e894bc19a93e143c3f26eb9569.tar.gz
tinygo-21db7e60995bc7e894bc19a93e143c3f26eb9569.zip
main: move "tinygo" build tag to compiler
Replace "tgo" with "tinygo" and set it always (even with `tinygo run`).
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index e4b0e9655..eba4720ba 100644
--- a/main.go
+++ b/main.go
@@ -40,7 +40,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
DumpSSA: config.dumpSSA,
RootDir: sourceDir(),
GOPATH: getGopath(),
- BuildTags: append(spec.BuildTags, "tinygo"),
+ BuildTags: spec.BuildTags,
InitInterp: config.initInterp,
}
c, err := compiler.NewCompiler(pkgName, compilerConfig)