<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The old check exists in clang/test/lit.cfg too, does it need the
same fix?<br>
<br>
<code># Native compilation: host arch == target arch</code><code><br>
</code><code>if config.host_arch in config.target_triple:</code><code><br>
</code><code> config.available_features.add("native")</code><br>
<br>
Alp.<br>
<br>
<div class="moz-cite-prefix">On 26/10/2013 03:50, NAKAMURA Takumi
wrote:<br>
</div>
<blockquote cite="mid:20131026025020.5AD2D2A6C029@llvm.org"
type="cite">
<pre wrap="">Author: chapuni
Date: Fri Oct 25 21:50:20 2013
New Revision: 193459
URL: <a class="moz-txt-link-freetext" href="http://llvm.org/viewvc/llvm-project?rev=193459&view=rev">http://llvm.org/viewvc/llvm-project?rev=193459&view=rev</a>
Log:
llvm/test/lit.cfg: Tighten conditions to enable 'native'.
I saw the case that 'native' was mis-enabled when x86_64-pc-win32 on x86_64-linux.
FIXME: Consider cases that target can be executed even if host_triple were different from target_triple.
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: <a class="moz-txt-link-freetext" href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=193459&r1=193458&r2=193459&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=193459&r1=193458&r2=193459&view=diff</a>
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Fri Oct 25 21:50:20 2013
@@ -297,7 +297,9 @@ if config.have_zlib == "1":
config.available_features.add("zlib")
# Native compilation: host arch == target arch
-if config.host_arch in config.target_triple:
+# FIXME: Consider cases that target can be executed
+# even if host_triple were different from target_triple.
+if config.host_triple == config.target_triple:
config.available_features.add("native")
# llc knows whether he is compiled with -DNDEBUG.
_______________________________________________
llvm-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.nuanti.com">http://www.nuanti.com</a>
the browser experts
</pre>
</body>
</html>