@@ -235,7 +235,7 @@ fn analyze_source_file_dispatch(
235
235
}
236
236
}
237
237
238
- #[ cfg( target_arch = "aarch64" ) ]
238
+ #[ cfg( all ( target_arch = "aarch64" , target_endian = "little" ) ) ]
239
239
fn analyze_source_file_dispatch (
240
240
src : & str ,
241
241
lines : & mut Vec < TextSize > ,
@@ -347,7 +347,7 @@ unsafe fn analyze_source_file_sse2(
347
347
}
348
348
349
349
#[ target_feature( enable = "neon" ) ]
350
- #[ cfg( target_arch = "aarch64" ) ]
350
+ #[ cfg( all ( target_arch = "aarch64" , target_endian = "little" ) ) ]
351
351
#[ inline]
352
352
// See https://community.arm.com/arm-community-blogs/b/infrastructure-solutions-blog/posts/porting-x86-vector-bitmask-optimizations-to-arm-neon
353
353
//
@@ -362,7 +362,7 @@ unsafe fn move_mask(v: std::arch::aarch64::uint8x16_t) -> u64 {
362
362
}
363
363
364
364
#[ target_feature( enable = "neon" ) ]
365
- #[ cfg( target_arch = "aarch64" ) ]
365
+ #[ cfg( all ( target_arch = "aarch64" , target_endian = "little" ) ) ]
366
366
unsafe fn analyze_source_file_neon (
367
367
src : & str ,
368
368
lines : & mut Vec < TextSize > ,
@@ -441,7 +441,11 @@ unsafe fn analyze_source_file_neon(
441
441
}
442
442
}
443
443
444
- #[ cfg( not( any( target_arch = "x86" , target_arch = "x86_64" , target_arch = "aarch64" ) ) ) ]
444
+ #[ cfg( not( any(
445
+ target_arch = "x86" ,
446
+ target_arch = "x86_64" ,
447
+ all( target_arch = "aarch64" , target_endian = "little" )
448
+ ) ) ) ]
445
449
// The target (or compiler version) does not support SSE2 ...
446
450
fn analyze_source_file_dispatch (
447
451
src : & str ,
0 commit comments