1
- if (SWIFT_BUILD_SDK_OVERLAY
2
- OR (SWIFT_BUILD_TEST_SUPPORT_MODULES
3
- AND NOT SWIFT_BUILD_DYNAMIC_SDK_OVERLAY_default
4
- AND (SWIFT_ENABLE_REFLECTION
5
- OR NOT SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS)))
1
+ if (SWIFT_BUILD_SDK_OVERLAY)
6
2
# SwiftPrivateThreadExtras makes use of Darwin/Glibc, which is part of the
7
- # SDK overlay. If the SDK overlay doesn't build by default, then it should
8
- # be available in the SDK and DifferentiationUnittest can still be built.
9
- # However, the overlay in the Apple SDKs requires the standard library to
10
- # have reflection enabled.
3
+ # SDK overlay. It can't be built separately from the SDK overlay.
11
4
if (SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING)
12
5
add_subdirectory (DifferentiationUnittest)
13
6
endif ()
7
+ endif ()
8
+
9
+ if (SWIFT_BUILD_SDK_OVERLAY OR SWIFT_BUILD_TEST_SUPPORT_MODULES)
14
10
add_subdirectory (SwiftPrivate)
15
11
add_subdirectory (RuntimeUnittest)
16
12
add_subdirectory (StdlibUnicodeUnittest)
@@ -22,7 +18,9 @@ if(SWIFT_BUILD_SDK_OVERLAY
22
18
# SwiftPrivateThreadExtras to ensure that the dependency targets are setup in
23
19
# the correct order for Windows.
24
20
add_subdirectory (StdlibUnittest)
21
+ endif ()
25
22
23
+ if (SWIFT_BUILD_SDK_OVERLAY)
26
24
add_subdirectory (OSLog)
27
25
28
26
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
0 commit comments