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

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL246350: The host and default target triples do not need to match for "native" (authored by probinson).

Changed prior to commit:
  http://reviews.llvm.org/D12454?vs=33480&id=33486#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D12454

Files:
  llvm/trunk/test/lit.cfg

Index: llvm/trunk/test/lit.cfg
===================================================================
--- llvm/trunk/test/lit.cfg
+++ llvm/trunk/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.33486.patch
Type: text/x-patch
Size: 702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/eca99b95/attachment.bin>


More information about the llvm-commits mailing list