diff options
author | Lang Hames <lhames@gmail.com> | 2018-09-26 16:26:59 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-09-26 16:26:59 +0000 |
commit | f0a3fd885dfb416423f525e58c901d8632e2780a (patch) | |
tree | 09f039531b75264c7cba6e5a99a2da22ad3764d1 /llvm/test/lit.cfg.py | |
parent | b0189289bf31582c0e7bcfcbeddd6a54f844e3f6 (diff) | |
download | bcm5719-llvm-f0a3fd885dfb416423f525e58c901d8632e2780a.tar.gz bcm5719-llvm-f0a3fd885dfb416423f525e58c901d8632e2780a.zip |
Reapply r343058 with a fix for -DLLVM_ENABLE_THREADS=OFF.
Modifies lit to add a 'thread_support' feature that can be used in lit test
REQUIRES clauses. The thread_support flag is set if -DLLVM_ENABLE_THREADS=ON
and unset if -DLLVM_ENABLE_THREADS=OFF. The lit flag is used to disable the
multiple-compile-threads-basic.ll testcase when threading is disabled.
llvm-svn: 343122
Diffstat (limited to 'llvm/test/lit.cfg.py')
-rw-r--r-- | llvm/test/lit.cfg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 9099221c80c..ff6a5f39188 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -319,6 +319,9 @@ if not re.match(r'^x86_64.*-(windows-gnu|windows-msvc)', config.target_triple): if config.have_libxar: config.available_features.add('xar') +if config.enable_threads: + config.available_features.add('thread_support') + if config.llvm_libxml2_enabled == '1': config.available_features.add('libxml2') |