[PATCH] D12454: Better lit.cfg "native" detection

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 16:08:51 PDT 2015


probinson created this revision.
probinson added a reviewer: joker-eph.
probinson added a subscriber: llvm-commits.

The host and default target triples do not need to match for "native" backend to work.


http://reviews.llvm.org/D12454

Files:
  test/lit.cfg

Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -340,11 +340,8 @@
 else:
     config.available_features.add("nozlib")
 
-# 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):
+# Native compilation: host arch (native) backend built-in
+if config.native_target in config.targets_to_build:
     config.available_features.add("native")
 
 import subprocess


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12454.33480.patch
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/90652679/attachment.bin>


More information about the llvm-commits mailing list