llvm/test/lit.cfg: Tighten conditions to enable 'native'.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 26 Oct 2013 02:50:20 +0000 (02:50 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 26 Oct 2013 02:50:20 +0000 (02:50 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193459 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 1b6fa54c52281d67a44ba0ba977e7a54e34ae277..9ac7e7a5a235a9f1c55c5808606c1fb78172877f 100644 (file)
@@ -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.