File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
; Avoid `!DL->isLittleEndian() && !CLI->enableBigEndian()` missmatch on PPC64BE.
2
- ; REQUIRES: host -byteorder-little-endian
2
+ ; REQUIRES: target -byteorder-little-endian
3
3
4
4
; -global-isel=1 is unsupported.
5
5
; XFAIL: target=loongarch{{.*}}
Original file line number Diff line number Diff line change @@ -364,6 +364,14 @@ def version_int(ver):
364
364
config .available_features .add ("llvm-64-bits" )
365
365
366
366
config .available_features .add ("host-byteorder-" + sys .byteorder + "-endian" )
367
+ if config .target_triple :
368
+ if re .match (
369
+ r"(aarch64_be|arc|armeb|bpfeb|lanai|m68k|mips|mips64|powerpc|powerpc64|sparc|sparcv9|s390x|s390|tce|thumbeb)-.*" ,
370
+ config .target_triple ,
371
+ ):
372
+ config .available_features .add ("target-byteorder-big-endian" )
373
+ else :
374
+ config .available_features .add ("target-byteorder-little-endian" )
367
375
368
376
if sys .platform in ["win32" ]:
369
377
# ExecutionEngine, no weak symbols in COFF.
You can’t perform that action at this time.
0 commit comments