Skip to content

Commit

Permalink
fix unable to find __addtf3, __multf3 and __subtf3
Browse files Browse the repository at this point in the history
Added target-feature=+crt-static and link-arg=-lgcc as a temporary
workaround. This seems to be the accepted fix in the Rust community:
rust-lang/compiler-builtins#201

A permanent fix is yet to be implemented in the Rust compiler.

Signed-off-by: Andreea Florescu <fandree@amazon.com>
Signed-off-by: alindima <alindima@amazon.com>
  • Loading branch information
alindima authored and alexandruag committed Jun 16, 2021
1 parent 354de0c commit 71946e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]

0 comments on commit 71946e6

Please sign in to comment.