mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 07:23:39 +00:00
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:
committed by
Ron Evans
parent
f76385850d
commit
54169c714f
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user