forked from OSchip/llvm-project
14 lines
395 B
INI
14 lines
395 B
INI
def getRoot(config):
|
|
if not config.parent:
|
|
return config
|
|
return getRoot(config.parent)
|
|
|
|
root = getRoot(config)
|
|
|
|
if 'libdispatch' not in root.available_features:
|
|
config.unsupported = True
|
|
|
|
for index, (template, replacement) in enumerate(config.substitutions):
|
|
if template in ['%clang_tsan ', '%clangxx_tsan ']:
|
|
config.substitutions[index] = (template, replacement + ' -fblocks ')
|