diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-11-04 06:55:55 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-11-04 06:55:55 +0000 |
commit | 448a3e57854b18d666e8851d0d7be09c293f6cd4 (patch) | |
tree | cd8ce97605f9e483484050dc0250c3d57dd55d0b /llvm/test/lit.cfg.py | |
parent | a96d62b360b873046035ba439053cd4de2ff1470 (diff) | |
download | bcm5719-llvm-448a3e57854b18d666e8851d0d7be09c293f6cd4.tar.gz bcm5719-llvm-448a3e57854b18d666e8851d0d7be09c293f6cd4.zip |
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
Diffstat (limited to 'llvm/test/lit.cfg.py')
-rw-r--r-- | llvm/test/lit.cfg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 57dc1f07049..73a3b4b58a8 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -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 |