diff options
author | Julian Lettner <jlettner@apple.com> | 2019-04-04 17:25:43 +0000 |
---|---|---|
committer | Julian Lettner <jlettner@apple.com> | 2019-04-04 17:25:43 +0000 |
commit | 7f5d9734fe4d4bdd951aa331d83e18c76ecea3a6 (patch) | |
tree | 968c028818f00bab11185acbd29618ed113b2603 /test/tsan | |
parent | 8c5425929fe986f85b24fb030c818d8385f262d7 (diff) | |
download | compiler-rt-7f5d9734fe4d4bdd951aa331d83e18c76ecea3a6.tar.gz |
[TSan][libdispatch] Specify libdispatch header dir for lit tests
Specify libdispatch header dir (include path) for lit tests. This is the
last missing piece in order to run the libdispatch tests on Linux even
when libdispatch is installed in a custom path instead of a default
(system) location.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@357707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r-- | test/tsan/libdispatch/lit.local.cfg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/tsan/libdispatch/lit.local.cfg b/test/tsan/libdispatch/lit.local.cfg index cafc2c47b..a3f05d980 100644 --- a/test/tsan/libdispatch/lit.local.cfg +++ b/test/tsan/libdispatch/lit.local.cfg @@ -5,9 +5,10 @@ def getRoot(config): root = getRoot(config) -if 'libdispatch' not in root.available_features: +if 'libdispatch' in root.available_features: + additional_cflags = ' -fblocks ' + for index, (template, replacement) in enumerate(config.substitutions): + if template in ['%clang_tsan ', '%clangxx_tsan ']: + config.substitutions[index] = (template, replacement + additional_cflags) +else: config.unsupported = True - -for index, (template, replacement) in enumerate(config.substitutions): - if template in ['%clang_tsan ', '%clangxx_tsan ']: - config.substitutions[index] = (template, replacement + ' -fblocks ') |