diff options
author | Ayke van Laethem <[email protected]> | 2019-07-31 20:32:18 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-08-04 17:12:07 +0200 |
commit | 54169c714fb9e9142fed5e7a70897ff466f31d28 (patch) | |
tree | 9af262727bddfa1ffd8b330addba429895244a0b /compiler | |
parent | f76385850dd0d38585085ecf3fcba2e9e32ad731 (diff) | |
download | tinygo-54169c714fb9e9142fed5e7a70897ff466f31d28.tar.gz tinygo-54169c714fb9e9142fed5e7a70897ff466f31d28.zip |
all: use baremetal build tag
This simplifies adding more baremetal targets, like a GameBoy Advance,
or baremetal x86 for unikernels.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/compiler.go | 2 | ||||
-rw-r--r-- | compiler/gc.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/compiler.go b/compiler/compiler.go index c68a40106..c12aec89d 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -226,7 +226,7 @@ func (c *Compiler) Compile(mainPath string) []error { return path } else if path == "syscall" { for _, tag := range c.BuildTags { - if tag == "avr" || tag == "cortexm" || tag == "darwin" || tag == "riscv" { + if tag == "baremetal" || tag == "darwin" { return path } } diff --git a/compiler/gc.go b/compiler/gc.go index e6b196141..d9679efca 100644 --- a/compiler/gc.go +++ b/compiler/gc.go @@ -18,7 +18,7 @@ func (c *Compiler) needsStackObjects() bool { return false } for _, tag := range c.BuildTags { - if tag == "cortexm" || tag == "tinygo.riscv" { + if tag == "baremetal" { return false } } |