aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/library.go
diff options
context:
space:
mode:
Diffstat (limited to 'builder/library.go')
-rw-r--r--builder/library.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/library.go b/builder/library.go
index 7bb506c76..3016eef86 100644
--- a/builder/library.go
+++ b/builder/library.go
@@ -74,6 +74,9 @@ func (l *Library) Load(target string) (path string, err error) {
if strings.HasPrefix(target, "riscv32-") {
args = append(args, "-march=rv32imac", "-mabi=ilp32", "-fforce-enable-int128")
}
+ if strings.HasPrefix(target, "avr-") {
+ args = append(args, "-mdouble=64", "-mmcu=atmega1284p")
+ }
// Compile all sources.
var objs []string