mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 16:03:41 +00:00
Add AVR support
This requires support in LLVM, as AVR support is still experimental. For example, in bindings/go/build.sh, add -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR to cmake_flags.
This commit is contained in:
@@ -1588,6 +1588,9 @@ func Compile(pkgName, runtimePath, outpath, target string, printIR bool) error {
|
||||
if target == "pca10040" {
|
||||
buildTags = append(buildTags, "nrf", "nrf52", "nrf52832")
|
||||
target = "armv7m-none-eabi"
|
||||
} else if target == "arduino" {
|
||||
buildTags = append(buildTags, "avr", "avr8", "atmega", "atmega328p")
|
||||
target = "avr--"
|
||||
}
|
||||
|
||||
c, err := NewCompiler(pkgName, target)
|
||||
|
||||
Reference in New Issue
Block a user