Skip to content

Commit

Permalink
Merge pull request #568 from nikic/fix-float80-builtins
Browse files Browse the repository at this point in the history
Only add 80-bit long double source on x86
  • Loading branch information
Amanieu authored Jan 22, 2024
2 parents ab849ed + 1f6ca44 commit e829333
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,23 @@ mod c {
sources.extend(&[
("__divdc3", "divdc3.c"),
("__divsc3", "divsc3.c"),
("__divxc3", "divxc3.c"),
("__extendhfsf2", "extendhfsf2.c"),
("__muldc3", "muldc3.c"),
("__mulsc3", "mulsc3.c"),
("__mulxc3", "mulxc3.c"),
("__negdf2", "negdf2.c"),
("__negsf2", "negsf2.c"),
("__powixf2", "powixf2.c"),
("__truncdfhf2", "truncdfhf2.c"),
("__truncsfhf2", "truncsfhf2.c"),
]);

if target_arch == "x86" || target_arch == "x86_64" {
// Only add 80-bit long double sources on x86.
sources.extend(&[
("__divxc3", "divxc3.c"),
("__mulxc3", "mulxc3.c"),
("__powixf2", "powixf2.c"),
]);
}
}

// When compiling in rustbuild (the rust-lang/rust repo) this library
Expand Down

0 comments on commit e829333

Please sign in to comment.