@@ -9,7 +9,7 @@ project(swift-stdlib LANGUAGES C CXX)
9
9
list (APPEND CMAKE_MODULE_PATH
10
10
"${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules" )
11
11
12
- if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL " OSX" )
12
+ if ("${SWIFT_HOST_VARIANT_SDK} " MATCHES "( OSX|IOS*|TVOS*|WATCHOS*) " )
13
13
# All Darwin platforms have ABI stability.
14
14
set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
15
15
elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "LINUX" )
@@ -42,10 +42,17 @@ endif()
42
42
# User-configurable options for the standard library.
43
43
#
44
44
45
+ # NOTE: Some of these variables are also initialized in StandaloneOverlay.cmake
46
+ # so that interfaces are emitted when overlays are separately built.
47
+
45
48
option (SWIFT_STDLIB_STABLE_ABI
46
49
"Should stdlib be built with stable ABI (library evolution, resilience)."
47
50
"${SWIFT_STDLIB_STABLE_ABI_default} " )
48
51
52
+ option (SWIFT_ENABLE_MODULE_INTERFACES
53
+ "Generate .swiftinterface files alongside .swiftmodule files"
54
+ "${SWIFT_STDLIB_STABLE_ABI} " )
55
+
49
56
option (SWIFT_ENABLE_COMPATIBILITY_OVERRIDES
50
57
"Support back-deploying compatibility fixes for newer apps running on older runtimes."
51
58
TRUE )
@@ -62,10 +69,6 @@ option(SWIFT_STDLIB_OS_VERSIONING
62
69
"Build stdlib with availability based on OS versions (Darwin only)."
63
70
TRUE )
64
71
65
- option (SWIFT_ENABLE_MODULE_INTERFACES
66
- "Generate .swiftinterface files alongside .swiftmodule files"
67
- "${SWIFT_STDLIB_STABLE_ABI} " )
68
-
69
72
option (SWIFT_COMPILE_DIFFERENTIATION_WITHOUT_TGMATH
70
73
"Build Differentation without tgmath (and dependency on platform runtime libraries)"
71
74
FALSE )
0 commit comments