Skip to content

Commit 9945ce8

Browse files
authored
Merge pull request #377 from vigoux/aarch64-musl-fallback
Add compiler-rt fallbacks on aarch64-musl
2 parents 5612f30 + c172ebd commit 9945ce8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,18 @@ mod c {
419419
if target_os != "windows" {
420420
sources.extend(&[("__multc3", "multc3.c")]);
421421
}
422+
423+
if target_env == "musl" {
424+
sources.extend(&[
425+
("__addtf3", "addtf3.c"),
426+
("__multf3", "multf3.c"),
427+
("__subtf3", "subtf3.c"),
428+
("__divtf3", "divtf3.c"),
429+
("__powitf2", "powitf2.c"),
430+
("__fe_getround", "fp_mode.c"),
431+
("__fe_raise_inexact", "fp_mode.c"),
432+
]);
433+
}
422434
}
423435

424436
if target_arch == "mips" {

0 commit comments

Comments
 (0)