File tree 1 file changed +15
-4
lines changed 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -5430,10 +5430,6 @@ mod c {
5430
5430
if target_arch == "arm" && target_os != "ios" {
5431
5431
sources. extend (
5432
5432
& [
5433
- "arm/aeabi_cdcmp.S" ,
5434
- "arm/aeabi_cdcmpeq_check_nan.c" ,
5435
- "arm/aeabi_cfcmp.S" ,
5436
- "arm/aeabi_cfcmpeq_check_nan.c" ,
5437
5433
"arm/aeabi_dcmp.S" ,
5438
5434
"arm/aeabi_div0.c" ,
5439
5435
"arm/aeabi_drsub.c" ,
@@ -5467,6 +5463,21 @@ mod c {
5467
5463
// "arm/udivsi3.S",
5468
5464
] ,
5469
5465
) ;
5466
+
5467
+ // First of all aeabi_cdcmp and aeabi_cfcmp are never called by LLVM.
5468
+ // Second are little-endian only, so build fail on big-endian targets.
5469
+ // Temporally workaround: exclude these files for big-endian targets.
5470
+ if !llvm_target[ 0 ] . starts_with ( "thumbeb" ) &&
5471
+ !llvm_target[ 0 ] . starts_with ( "armeb" ) {
5472
+ sources. extend (
5473
+ & [
5474
+ "arm/aeabi_cdcmp.S" ,
5475
+ "arm/aeabi_cdcmpeq_check_nan.c" ,
5476
+ "arm/aeabi_cfcmp.S" ,
5477
+ "arm/aeabi_cfcmpeq_check_nan.c" ,
5478
+ ] ,
5479
+ ) ;
5480
+ }
5470
5481
}
5471
5482
5472
5483
if llvm_target[ 0 ] == "armv7" {
You can’t perform that action at this time.
0 commit comments