r242115 - clang/test/lit.cfg: Introduce the feature "tls", for targeting cygwin.

NAKAMURA Takumi geek4civic at gmail.com
Mon Jul 13 20:57:11 PDT 2015


Author: chapuni
Date: Mon Jul 13 22:57:11 2015
New Revision: 242115

URL: http://llvm.org/viewvc/llvm-project?rev=242115&view=rev
Log:
clang/test/lit.cfg: Introduce the feature "tls", for targeting cygwin.

Thread local storage is not implemented for targeting cygwin.

Modified:
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=242115&r1=242114&r2=242115&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Mon Jul 13 22:57:11 2015
@@ -421,6 +421,10 @@ if not re.match(r'.*-(cygwin|mingw32|win
 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()





More information about the cfe-commits mailing list