4 return getRoot(config
.parent
)
9 if "libdispatch" in root
.available_features
:
10 additional_cflags
= " -fblocks "
11 for index
, (template
, replacement
) in enumerate(config
.substitutions
):
12 if template
in ["%clang_tsan ", "%clangxx_tsan "]:
13 config
.substitutions
[index
] = (template
, replacement
+ additional_cflags
)
15 config
.unsupported
= True
17 if config
.host_os
== "Darwin":
18 config
.environment
["TSAN_OPTIONS"] += ":ignore_noninstrumented_modules=1"