mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 20:43:40 +00:00
main: move "tinygo" build tag to compiler
Replace "tgo" with "tinygo" and set it always (even with `tinygo run`).
This commit is contained in:
@@ -200,7 +200,7 @@ func (c *Compiler) Compile(mainPath string) error {
|
||||
CgoEnabled: true,
|
||||
UseAllFiles: false,
|
||||
Compiler: "gc", // must be one of the recognized compilers
|
||||
BuildTags: append([]string{"tgo"}, c.BuildTags...),
|
||||
BuildTags: append([]string{"tinygo"}, c.BuildTags...),
|
||||
},
|
||||
ParserMode: parser.ParseComments,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user