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 3f710debf23a36cb83d3b2f9615111be15781246..b77f892d4d9225289b5887910672f989119630ef 100644 (file)
@@ -374,6 +374,10 @@ if config.target_triple:
 if config.host_triple == config.target_triple:
     config.available_features.add("native")
 
 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():
 import subprocess
 
 def have_ld_plugin_support():