mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-19 14:44:39 +00:00
llvm/test/lit.cfg.py: Don't set the feature "llvm-64-bits" if -m32 is specified.
FIXME: LLVM_BUILD_32_BITS should modify host_triple. llvm-svn: 317404
This commit is contained in:
parent
a96d62b360
commit
448a3e5785
@ -169,7 +169,8 @@ for arch in config.targets_to_build.split():
|
||||
|
||||
# Features
|
||||
known_arches = ["x86_64", "mips64", "ppc64", "aarch64"]
|
||||
if any(config.llvm_host_triple.startswith(x) for x in known_arches):
|
||||
if (config.host_ldflags.find("-m32") < 0
|
||||
and any(config.llvm_host_triple.startswith(x) for x in known_arches)):
|
||||
config.available_features.add("llvm-64-bits")
|
||||
|
||||
# Others/can-execute.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user