File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,17 @@ function is_swift_lto_enabled() {
328
328
fi
329
329
}
330
330
331
+ # Enable module-builds of llvm only when asan is disabled.
332
+ # FIXME: rdar://problem/28356072
333
+ function is_llvm_module_build_enabled() {
334
+ if [[ " $( true_false ${LLVM_ENABLE_MODULES} ) " == " TRUE" ]] &&
335
+ [[ " $( true_false ${ENABLE_ASAN} ) " == " FALSE" ]]; then
336
+ echo " TRUE"
337
+ else
338
+ echo " FALSE"
339
+ fi
340
+ }
341
+
331
342
# Support for performing isolated actions.
332
343
#
333
344
# This is part of refactoring more work to be done or controllable via
@@ -636,7 +647,7 @@ function set_build_options_for_host() {
636
647
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
637
648
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
638
649
-DSANITIZER_MIN_OSX_VERSION=" ${cmake_osx_deployment_target} "
639
- -DLLVM_ENABLE_MODULES:BOOL=" $( true_false ${LLVM_ENABLE_MODULES} ) "
650
+ -DLLVM_ENABLE_MODULES:BOOL=" $( is_llvm_module_build_enabled ) "
640
651
)
641
652
if [[ $( is_llvm_lto_enabled) == " TRUE" ]]; then
642
653
if [[ $( cmake_needs_to_specify_standard_computed_defaults) == " TRUE" ]]; then
You can’t perform that action at this time.
0 commit comments