diff options
-rw-r--r-- | llvm/test/lit.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg index 3f710debf23..b77f892d4d9 100644 --- a/llvm/test/lit.cfg +++ b/llvm/test/lit.cfg @@ -374,6 +374,10 @@ if config.target_triple: if config.host_triple == config.target_triple: config.available_features.add("native") +# Not set for targeting tls-incapable targets. +if not re.match(r'.*-cygwin$', config.target_triple): + config.available_features.add('tls') + import subprocess def have_ld_plugin_support(): |