Merge pull request #568 from nikic/fix-float80-builtins

Only add 80-bit long double source on x86
This commit is contained in:
Amanieu d'Antras 2024-01-22 14:37:43 +00:00 committed by GitHub
commit 01065786f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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