Skip to content

Commit 5575d91

Browse files
committed
Support long double intrinsics in any aarch64 linux
Expands the support added in rust-lang#377 from just musl to any linux. Fixes rust-lang#428
1 parent f26cf72 commit 5575d91

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,18 @@ mod c {
425425
sources.extend(&[("__multc3", "multc3.c")]);
426426
}
427427

428-
if target_env == "musl" {
428+
if target_os == "linux" {
429429
sources.extend(&[
430430
("__addtf3", "addtf3.c"),
431431
("__multf3", "multf3.c"),
432432
("__subtf3", "subtf3.c"),
433433
("__divtf3", "divtf3.c"),
434434
("__powitf2", "powitf2.c"),
435+
]);
436+
}
437+
438+
if target_env == "musl" {
439+
sources.extend(&[
435440
("__fe_getround", "fp_mode.c"),
436441
("__fe_raise_inexact", "fp_mode.c"),
437442
]);

0 commit comments

Comments
 (0)