Skip to content

Commit 0bd1e61

Browse files
authored
[build][gardening] adjust one more framework path (#29529)
This is a follow to #29507 addressing one more place in which we need to collate -F with the framework path Addresses rdar://problem/58934566
1 parent 9676625 commit 0bd1e61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,10 @@ function(add_swift_target_library name)
21332133

21342134
list(APPEND swiftlib_swift_compile_flags_all "-Fsystem" "${ios_support_frameworks_path}")
21352135
list(APPEND swiftlib_c_compile_flags_all "-iframework" "${ios_support_frameworks_path}")
2136-
list(APPEND swiftlib_link_flags_all "-F" "${ios_support_frameworks_path}")
2136+
# We collate -F with the framework path to avoid unwanted deduplication
2137+
# of options by target_compile_options -- this way no undesired
2138+
# side effects are introduced should a new search path be added.
2139+
list(APPEND swiftlib_link_flags_all "-F${ios_support_frameworks_path}")
21372140
endif()
21382141

21392142
if(sdk IN_LIST SWIFT_APPLE_PLATFORMS AND SWIFTLIB_IS_SDK_OVERLAY)

0 commit comments

Comments
 (0)