We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab849ed + 1f6ca44 commit e829333Copy full SHA for e829333
build.rs
@@ -290,17 +290,23 @@ mod c {
290
sources.extend(&[
291
("__divdc3", "divdc3.c"),
292
("__divsc3", "divsc3.c"),
293
- ("__divxc3", "divxc3.c"),
294
("__extendhfsf2", "extendhfsf2.c"),
295
("__muldc3", "muldc3.c"),
296
("__mulsc3", "mulsc3.c"),
297
- ("__mulxc3", "mulxc3.c"),
298
("__negdf2", "negdf2.c"),
299
("__negsf2", "negsf2.c"),
300
- ("__powixf2", "powixf2.c"),
301
("__truncdfhf2", "truncdfhf2.c"),
302
("__truncsfhf2", "truncsfhf2.c"),
303
]);
+
+ if target_arch == "x86" || target_arch == "x86_64" {
+ // Only add 80-bit long double sources on x86.
304
+ sources.extend(&[
305
+ ("__divxc3", "divxc3.c"),
306
+ ("__mulxc3", "mulxc3.c"),
307
+ ("__powixf2", "powixf2.c"),
308
+ ]);
309
+ }
310
}
311
312
// When compiling in rustbuild (the rust-lang/rust repo) this library
0 commit comments