Revert r246350, "The host and default target triples do not need to match for "native""
[oota-llvm.git] / test / lit.cfg
index f0ed689e0aecf8e93a1ab85e4d2f072cf46c1ff8..38a2ec20ec8d6b4f4b61edd70a32f44bc5aff0e2 100644 (file)
@@ -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