all: use baremetal build tag

This simplifies adding more baremetal targets, like a GameBoy Advance,
or baremetal x86 for unikernels.
This commit is contained in:
Ayke van Laethem
2019-07-31 20:32:18 +02:00
committed by Ron Evans
parent f76385850d
commit 54169c714f
19 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -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
}
}
+1 -1
View File
@@ -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
}
}