2019-03-15 04:59:41 +08:00
|
|
|
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
|
|
|
|
|
2019-03-16 10:07:50 +08:00
|
|
|
for index, (template, replacement) in enumerate(config.substitutions):
|
|
|
|
if template in ['%clang_tsan ', '%clangxx_tsan ']:
|
|
|
|
config.substitutions[index] = (template, replacement + ' -fblocks ')
|