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
# 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