]> granicus.if.org Git - clang/commitdiff
clang/test/lit.cfg: Introduce the feature "tls", for targeting cygwin.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 14 Jul 2015 03:57:11 +0000 (03:57 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 14 Jul 2015 03:57:11 +0000 (03:57 +0000)
Thread local storage is not implemented for targeting cygwin.

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

test/lit.cfg

index 0e947dd437bbe1caaf744a21870e5deca7314d12..f853b3f7db4f3f721fadb924bb483b0207dbcf88 100644 (file)
@@ -421,6 +421,10 @@ if not re.match(r'.*-(cygwin|mingw32|windows-gnu)$', config.target_triple):
 if platform.system() not in ['Windows']:
     config.available_features.add('can-remove-opened-file')
 
+# Not set for targeting tls-incapable targets.
+if not re.match(r'.*-cygwin$', config.target_triple):
+    config.available_features.add('tls')
+
 # Returns set of available features, registered-target(s) and asserts.
 def get_llvm_config_props():
     set_of_features = set()