Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / tsan / libdispatch / lit.local.cfg.py
bloba7653f43059520553a2cbe8a1d6e4ebf3732204b
1 def getRoot(config):
2 if not config.parent:
3 return config
4 return getRoot(config.parent)
7 root = getRoot(config)
9 if "libdispatch" in root.available_features:
10 additional_cflags = " -fblocks "
11 for index, (template, replacement) in enumerate(config.substitutions):
12 if template in ["%clang_tsan ", "%clangxx_tsan "]:
13 config.substitutions[index] = (template, replacement + additional_cflags)
14 else:
15 config.unsupported = True
17 if config.host_os == "Darwin":
18 config.environment["TSAN_OPTIONS"] += ":ignore_noninstrumented_modules=1"