Skip to content

Commit 6cfb82b

Browse files
committed
CMake: move the Platform (Darwin, Glibc) library under the SDK overlay condition
1 parent 14197f6 commit 6cfb82b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ if(SWIFT_BUILD_STDLIB)
3131
add_subdirectory(stubs)
3232
add_subdirectory(core)
3333
add_subdirectory(SwiftOnoneSupport)
34-
add_subdirectory(Platform)
3534
add_subdirectory(Reflection)
3635
endif()
3736

37+
if(SWIFT_BUILD_SDK_OVERLAY)
38+
add_subdirectory(Platform)
39+
endif()
40+
3841
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
3942
if(SWIFT_BUILD_SDK_OVERLAY)
4043
add_subdirectory(SDK)

0 commit comments

Comments
 (0)