Skip to content

Commit 5ae4a58

Browse files
committed
FIN: build comiler-rt wihout Thumb on arm
1 parent a146431 commit 5ae4a58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libcompiler_builtins/build.rs

+6
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ fn main() {
293293
}
294294

295295
if target.contains("arm") && !target.contains("ios") {
296+
// (At least) udivsi3.S is broken for Thumb 1 which our gcc uses by
297+
// default, we don't want Thumb 2 since it isn't supported on some
298+
// devices, so disable thumb entirely.
299+
// Upstream bug: https://bugs.llvm.org/show_bug.cgi?id=32492
300+
cfg.define("__ARM_ARCH_ISA_THUMB", Some("0"));
301+
296302
sources.extend(&["arm/aeabi_cdcmp.S",
297303
"arm/aeabi_cdcmpeq_check_nan.c",
298304
"arm/aeabi_cfcmp.S",

0 commit comments

Comments
 (0)