Skip to content

Commit 5a29812

Browse files
authored
Merge pull request swiftlang#19513 from compnerd/simplify
2 parents e3ee12c + a4d0688 commit 5a29812

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,11 +1669,9 @@ function(add_swift_library name)
16691669

16701670
# Collect architecture agnostic SDK linker flags
16711671
set(swiftlib_link_flags_all ${SWIFTLIB_LINK_FLAGS})
1672-
if(${sdk} STREQUAL IOS_SIMULATOR)
1673-
if(${name} STREQUAL swiftMediaPlayer)
1674-
# message("DISABLING AUTOLINK FOR swiftMediaPlayer")
1675-
list(APPEND swiftlib_link_flags_all "-Xlinker" "-ignore_auto_link")
1676-
endif()
1672+
if(${sdk} STREQUAL IOS_SIMULATOR AND ${name} STREQUAL swiftMediaPlayer)
1673+
# message("DISABLING AUTOLINK FOR swiftMediaPlayer")
1674+
list(APPEND swiftlib_link_flags_all "-Xlinker" "-ignore_auto_link")
16771675
endif()
16781676

16791677
# We unconditionally removed "-z,defs" from CMAKE_SHARED_LINKER_FLAGS in

0 commit comments

Comments
 (0)