From ce4da272347af8a89a8f2dc388565527a22aa75c Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 4 Nov 2017 06:55:55 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317404 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lit.cfg.py b/test/lit.cfg.py index 57dc1f07049..73a3b4b58a8 100644 --- a/test/lit.cfg.py +++ b/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 -- 2.50.1