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.

llvm-svn: 242115

clang/test/lit.cfg

index 0e947dd..f853b3f 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()