Skip to content

Commit d62e385

Browse files
edymttslavapestov
authored andcommitted
[SwiftCore] emit correct names for symbols that can be backdeployed
This matches the flag that was added to the old build system in b0627e2 Addresses rdar://149410833
1 parent c905c5c commit d62e385

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtimes/Core/core/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ target_compile_options(swiftCore PRIVATE
301301
$<$<COMPILE_LANGUAGE:Swift>:-nostdimport>
302302
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -group-info-path -Xfrontend ${CMAKE_CURRENT_SOURCE_DIR}/GroupInfo.json>"
303303
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-objc-attr-requires-foundation-module>"
304-
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -require-explicit-availability=ignore>")
304+
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -require-explicit-availability=ignore>"
305+
"$<$<AND:$<PLATFORM_ID:Darwin>,$<COMPILE_LANGUAGE:Swift>>:SHELL:-Xfrontend -previous-module-installname-map-file -Xfrontend ${CMAKE_CURRENT_SOURCE_DIR}/PreviousModuleInstallName.json>")
305306
if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
306307
# Using these in MinSizeRel would result in a 15% increase in the binary size
307308
target_compile_options(swiftCore PRIVATE

0 commit comments

Comments
 (0)