We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 666457b + c94da3b commit 3bf75e6Copy full SHA for 3bf75e6
cmake/modules/AddSwift.cmake
@@ -1209,6 +1209,15 @@ function(_add_swift_library_single target name)
1209
"${SWIFTLIB_SINGLE_FORCE_BUILD_OPTIMIZED_keyword}"
1210
RESULT_VAR_NAME c_compile_flags
1211
)
1212
+
1213
+ if(SWIFTLIB_IS_STDLIB)
1214
+ # We don't ever want to link against the ABI-breakage checking symbols
1215
+ # in the standard library, runtime, or overlays because they only rely
1216
+ # on the header parts of LLVM's ADT.
1217
+ list(APPEND c_compile_flags
1218
+ "-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1")
1219
+ endif()
1220
1221
if(SWIFTLIB_SINGLE_SDK STREQUAL WINDOWS)
1222
if(libkind STREQUAL SHARED)
1223
list(APPEND c_compile_flags -D_WINDLL)
0 commit comments