Skip to content

Commit

Permalink
Merge pull request #377 from vigoux/aarch64-musl-fallback
Browse files Browse the repository at this point in the history
Add compiler-rt fallbacks on aarch64-musl
  • Loading branch information
Amanieu authored Aug 24, 2020
2 parents 5612f30 + c172ebd commit 9945ce8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,18 @@ mod c {
if target_os != "windows" {
sources.extend(&[("__multc3", "multc3.c")]);
}

if target_env == "musl" {
sources.extend(&[
("__addtf3", "addtf3.c"),
("__multf3", "multf3.c"),
("__subtf3", "subtf3.c"),
("__divtf3", "divtf3.c"),
("__powitf2", "powitf2.c"),
("__fe_getround", "fp_mode.c"),
("__fe_raise_inexact", "fp_mode.c"),
]);
}
}

if target_arch == "mips" {
Expand Down

0 comments on commit 9945ce8

Please sign in to comment.