Skip to content

Commit ebe97a4

Browse files
Try to skip some modules in freestanding mode
1 parent 948faf9 commit ebe97a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/private/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
if(SWIFT_BUILD_SDK_OVERLAY OR (SWIFT_BUILD_TEST_SUPPORT_MODULES AND NOT SWIFT_BUILD_DYNAMIC_SDK_OVERLAY_default))
1+
if(SWIFT_BUILD_SDK_OVERLAY OR (SWIFT_BUILD_TEST_SUPPORT_MODULES AND NOT SWIFT_BUILD_DYNAMIC_SDK_OVERLAY_default AND NOT SWIFT_FREESTANDING_FLAVOR STREQUAL "apple"))
22
# SwiftPrivateThreadExtras makes use of Darwin/Glibc, which is part of the
33
# SDK overlay. If the SDK overlay doesn't build by default, then it should
44
# be available in the SDK and DifferentiationUnittest can still be built.
5+
# However, the SDK overlay doesn't support freestanding, so still skip this
6+
# in freestanding mode.
57
if(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING)
68
add_subdirectory(DifferentiationUnittest)
79
endif()
@@ -21,7 +23,7 @@ if(SWIFT_BUILD_SDK_OVERLAY OR SWIFT_BUILD_TEST_SUPPORT_MODULES)
2123
add_subdirectory(StdlibUnittest)
2224
endif()
2325

24-
if(SWIFT_BUILD_SDK_OVERLAY OR (SWIFT_BUILD_TEST_SUPPORT_MODULES AND NOT SWIFT_BUILD_DYNAMIC_SDK_OVERLAY_default))
26+
if(SWIFT_BUILD_SDK_OVERLAY OR (SWIFT_BUILD_TEST_SUPPORT_MODULES AND NOT SWIFT_BUILD_DYNAMIC_SDK_OVERLAY_default AND NOT SWIFT_FREESTANDING_FLAVOR STREQUAL "apple"))
2527
add_subdirectory(OSLog)
2628

2729
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")

0 commit comments

Comments
 (0)