@@ -9,7 +9,7 @@ project(swift-stdlib LANGUAGES C CXX)
99list (APPEND CMAKE_MODULE_PATH
1010 "${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules" )
1111
12- if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL " OSX" )
12+ if ("${SWIFT_HOST_VARIANT_SDK} " MATCHES "( OSX|IOS*|TVOS*|WATCHOS*) " )
1313 # All Darwin platforms have ABI stability.
1414 set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
1515elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "LINUX" )
@@ -42,10 +42,17 @@ endif()
4242# User-configurable options for the standard library.
4343#
4444
45+ # NOTE: Some of these variables are also initialized in StandaloneOverlay.cmake
46+ # so that interfaces are emitted when overlays are separately built.
47+
4548option (SWIFT_STDLIB_STABLE_ABI
4649 "Should stdlib be built with stable ABI (library evolution, resilience)."
4750 "${SWIFT_STDLIB_STABLE_ABI_default} " )
4851
52+ option (SWIFT_ENABLE_MODULE_INTERFACES
53+ "Generate .swiftinterface files alongside .swiftmodule files"
54+ "${SWIFT_STDLIB_STABLE_ABI} " )
55+
4956option (SWIFT_ENABLE_COMPATIBILITY_OVERRIDES
5057 "Support back-deploying compatibility fixes for newer apps running on older runtimes."
5158 TRUE )
@@ -62,10 +69,6 @@ option(SWIFT_STDLIB_OS_VERSIONING
6269 "Build stdlib with availability based on OS versions (Darwin only)."
6370 TRUE )
6471
65- option (SWIFT_ENABLE_MODULE_INTERFACES
66- "Generate .swiftinterface files alongside .swiftmodule files"
67- "${SWIFT_STDLIB_STABLE_ABI} " )
68-
6972option (SWIFT_COMPILE_DIFFERENTIATION_WITHOUT_TGMATH
7073 "Build Differentation without tgmath (and dependency on platform runtime libraries)"
7174 FALSE )
0 commit comments