xref: /llvm-project/compiler-rt/test/tsan/libcxx/lit.local.cfg.py (revision f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c)
1def getRoot(config):
2    if not config.parent:
3        return config
4    return getRoot(config.parent)
5
6
7root = getRoot(config)
8
9# Only run if we have an instrumented libcxx.  On Darwin, run always (we have
10# interceptors to support the system-provided libcxx).
11if not root.has_libcxx and root.host_os != "Darwin":
12    config.unsupported = True
13