Skip to content

Commit 411a05b

Browse files
committed
Do not enforce checks for LLVM's ABI-breaking build settings.
The Swift runtime uses some header-only code from LLVM's ADT classes, but we do not want to link libSupport into the runtime. These checks rely on the presence of symbols in libSupport to identify how the code was built and cause link failures for mismatches. Without linking that library, we get link failures regardless, so instead, this just disables the checks.
1 parent 2f21735 commit 411a05b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build-script-impl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ function set_build_options_for_host() {
669669
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
670670
-DSANITIZER_MIN_OSX_VERSION="${cmake_osx_deployment_target}"
671671
-DLLVM_ENABLE_MODULES:BOOL="$(is_llvm_module_build_enabled)"
672+
-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING:BOOL=TRUE
672673
)
673674
if [[ $(is_llvm_lto_enabled) == "TRUE" ]]; then
674675
if [[ $(cmake_needs_to_specify_standard_computed_defaults) == "TRUE" ]]; then

0 commit comments

Comments
 (0)