diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg index 3f710debf23a..b77f892d4d92 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():