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
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()