Skip to content

Commit 6e7051e

Browse files
authored
Merge pull request swiftlang#20944 from compnerd/os-family
stdlib: restructure for OS family layout of SDK overlay
2 parents 3909b98 + 41d9c2c commit 6e7051e

File tree

241 files changed

+16
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+16
-17
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ if(SWIFT_BUILD_SDK_OVERLAY)
7272
add_subdirectory(Platform)
7373
endif()
7474

75-
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
76-
if(SWIFT_BUILD_SDK_OVERLAY)
77-
add_subdirectory(SDK)
75+
if(SWIFT_BUILD_SDK_OVERLAY)
76+
list_intersect("${SWIFT_APPLE_PLATFORMS}" "${SWIFT_SDKS}" building_darwin_sdks)
77+
if(building_darwin_sdks)
78+
add_subdirectory(Darwin)
7879
endif()
79-
endif()
8080

81-
if(SWIFT_BUILD_SDK_OVERLAY)
8281
if(WINDOWS IN_LIST SWIFT_SDKS)
8382
add_subdirectory(Windows)
8483
endif()

0 commit comments

Comments
 (0)