[llvm] r246352 - Revert r246350, "The host and default target triples do not need to match for "native""

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 16:33:17 PDT 2015


Author: chapuni
Date: Fri Aug 28 18:33:17 2015
New Revision: 246352

URL: http://llvm.org/viewvc/llvm-project?rev=246352&view=rev
Log:
Revert r246350, "The host and default target triples do not need to match for "native""

Wrong assumption. Consider --host=x86_64-linux --target=(i686|x86_64)-win32. See also r193459.

Modified:
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=246352&r1=246351&r2=246352&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Fri Aug 28 18:33:17 2015
@@ -340,8 +340,11 @@ if config.have_zlib == "1":
 else:
     config.available_features.add("nozlib")
 
-# Native compilation: host arch (native) backend built-in
-if config.native_target in config.targets_to_build:
+# Native compilation: host arch == target arch and native backend built-in
+# FIXME: Consider cases that target can be executed
+# even if host_triple were different from target_triple.
+if (config.host_triple == config.target_triple and
+    config.native_target in config.targets_to_build):
     config.available_features.add("native")
 
 import subprocess




More information about the llvm-commits mailing list