[llvm] r317404 - llvm/test/lit.cfg.py: Don't set the feature "llvm-64-bits" if -m32 is specified.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 23:55:55 PDT 2017


Author: chapuni
Date: Fri Nov  3 23:55:55 2017
New Revision: 317404

URL: http://llvm.org/viewvc/llvm-project?rev=317404&view=rev
Log:
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.

Modified:
    llvm/trunk/test/lit.cfg.py

Modified: llvm/trunk/test/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg.py?rev=317404&r1=317403&r2=317404&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg.py (original)
+++ llvm/trunk/test/lit.cfg.py Fri Nov  3 23:55:55 2017
@@ -169,7 +169,8 @@ for arch in config.targets_to_build.spli
 
 # 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




More information about the llvm-commits mailing list