Skip to content

Commit

Permalink
Fix build-std settings for compiler-builtins
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Rahix committed Jan 28, 2022
1 parent fb0dccd commit f88caa9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

[unstable]
build-std = ["core"]
build-std-features = ["compiler-builtins-mangled-names"]
{%- comment %}
# vim: ft=toml.jinja2
{% endcomment %}

0 comments on commit f88caa9

Please sign in to comment.