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

Thread local storage is not implemented for targeting cygwin.

llvm-svn: 242115
This commit is contained in:
NAKAMURA Takumi 2015-07-14 03:57:11 +00:00
parent aa80814c69
commit c5e50734e8
1 changed files with 4 additions and 0 deletions

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