13 lines · python
1def getRoot(config):2 if not config.parent:3 return config4 return getRoot(config.parent)5 6 7root = getRoot(config)8 9if root.target_os not in ["Darwin"]:10 config.unsupported = True11 12config.environment["TSAN_OPTIONS"] += ":ignore_noninstrumented_modules=1"13