Skip to content

Commit 4d288ac

Browse files
committed
examples: Fix build-std settings for compiler-builtins
This is a workaround to ensure intrinsics get linked in from avr-libc instead of Rust's compiler-builtins. The problem is that the versions from compiler-builtins have slightly different calling convention and as such cannot actually be substituted for the versions from avr-libc right now. This should fix a lot of the observed problems with 32-bit arithmetic. Ref: rust-lang/rust#82242 (comment)
1 parent d4435b0 commit 4d288ac

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

examples/arduino-diecimila/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude diecimila"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/arduino-leonardo/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude leonardo"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/arduino-mega2560/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude -cb 57600 mega2560"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/arduino-nano/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude nano -cb 57600"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/arduino-uno/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude uno -cb 57600"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/nano168/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude nano168 -cb 57600"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/sparkfun-promicro/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude promicro"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/trinket-pro/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude trinket-pro"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

examples/trinket/.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ runner = "ravedude trinket"
66

77
[unstable]
88
build-std = ["core"]
9+
build-std-features = ["compiler-builtins-mangled-names"]

0 commit comments

Comments
 (0)