llvm/compiler-rt/test/builtins/TestCases/Darwin/lit.local.cfg.py

def getRoot(config):
    if not config.parent:
        return config
    return getRoot(config.parent)


root = getRoot(config)

if root.host_os not in ["Darwin"]:
    config.unsupported = True