Skip to content

Commit 883966e

Browse files
committed
build: only add -Fsystem path if configured
The system framework paths are only configured for the Apple targets. Add a condition to avoid a search path to be added for other SDKs.
1 parent 5154886 commit 883966e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ function(add_swift_target_library name)
18781878
endforeach()
18791879

18801880
# Add PrivateFrameworks, rdar://28466433
1881-
if(SWIFTLIB_IS_SDK_OVERLAY)
1881+
if(sdk IN_LIST SWIFT_APPLE_PLATFORMS AND SWIFTLIB_IS_SDK_OVERLAY)
18821882
set(swiftlib_swift_compile_private_frameworks_flag "-Fsystem" "${SWIFT_SDK_${sdk}_ARCH_${arch}_PATH}/System/Library/PrivateFrameworks/")
18831883
endif()
18841884

0 commit comments

Comments
 (0)