Skip to content

Commit

Permalink
Support long double intrinsics in any aarch64 linux
Browse files Browse the repository at this point in the history
Expands the support added in rust-lang#377 from just musl to any linux.

Fixes rust-lang#428
  • Loading branch information
richkadel committed Jul 14, 2021
1 parent f26cf72 commit 5575d91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,18 @@ mod c {
sources.extend(&[("__multc3", "multc3.c")]);
}

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

if target_env == "musl" {
sources.extend(&[
("__fe_getround", "fp_mode.c"),
("__fe_raise_inexact", "fp_mode.c"),
]);
Expand Down

0 comments on commit 5575d91

Please sign in to comment.