OSDN Git Service

check-llvm: Introduce the new feature "tls".
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 1 Dec 2015 01:14:58 +0000 (01:14 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 1 Dec 2015 01:14:58 +0000 (01:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254360 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 3f710de..b77f892 100644 (file)
@@ -374,6 +374,10 @@ if config.target_triple:
 if config.host_triple == config.target_triple:
     config.available_features.add("native")
 
+# Not set for targeting tls-incapable targets.
+if not re.match(r'.*-cygwin$', config.target_triple):
+    config.available_features.add('tls')
+
 import subprocess
 
 def have_ld_plugin_support():