@@ -9,49 +9,12 @@ 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} " MATCHES "(OSX|IOS*|TVOS*|WATCHOS*)" )
13
- # All Darwin platforms have ABI stability.
14
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
15
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "LINUX" )
16
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
17
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
18
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "FREEBSD" )
19
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
20
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
21
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "OPENBSD" )
22
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
23
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
24
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "CYGWIN" )
25
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
26
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
27
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "WINDOWS" )
28
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
29
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
30
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "HAIKU" )
31
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
32
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
33
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "ANDROID" )
34
- # TODO(mracek): This should get turned off, as this is not an ABI stable platform.
35
- set (SWIFT_STDLIB_STABLE_ABI_default TRUE )
36
- else ()
37
- # Any new platform should have non-stable ABI to start with.
38
- set (SWIFT_STDLIB_STABLE_ABI_default FALSE )
39
- endif ()
40
-
41
12
if (SWIFT_BUILD_SDK_OVERLAY OR SWIFT_INCLUDE_TESTS )
42
13
set (SWIFT_BUILD_TEST_SUPPORT_MODULES_default TRUE )
43
14
else ()
44
15
set (SWIFT_BUILD_TEST_SUPPORT_MODULES_default FALSE )
45
16
endif ()
46
17
47
- if ("${SWIFT_HOST_VARIANT_SDK} " MATCHES "(OSX|IOS*|TVOS*|WATCHOS*)" )
48
- set (SWIFT_STDLIB_ENABLE_PRESPECIALIZATION_default TRUE )
49
- elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "LINUX" )
50
- set (SWIFT_STDLIB_ENABLE_PRESPECIALIZATION_default TRUE )
51
- else ()
52
- set (SWIFT_STDLIB_ENABLE_PRESPECIALIZATION_default FALSE )
53
- endif ()
54
-
55
18
#
56
19
# User-configurable options for the standard library.
57
20
#
@@ -64,26 +27,10 @@ endif()
64
27
65
28
# TODO: migrate this section to StdlibOptions.cmake to reduce duplication
66
29
67
- option (SWIFT_STDLIB_STABLE_ABI
68
- "Should stdlib be built with stable ABI (library evolution, resilience)."
69
- "${SWIFT_STDLIB_STABLE_ABI_default} " )
70
-
71
- option (SWIFT_ENABLE_MODULE_INTERFACES
72
- "Generate .swiftinterface files alongside .swiftmodule files"
73
- "${SWIFT_STDLIB_STABLE_ABI} " )
74
-
75
30
option (SWIFT_BUILD_TEST_SUPPORT_MODULES
76
31
"Whether to build StdlibUnittest and other test support modules. Defaults to On when SWIFT_BUILD_SDK_OVERLAY is On, or when SWIFT_INCLUDE_TESTS is On."
77
32
"${SWIFT_BUILD_TEST_SUPPORT_MODULES_default} " )
78
33
79
- option (SWIFT_STDLIB_ENABLE_PRESPECIALIZATION
80
- "Should stdlib be built with generic metadata prespecialization enabled. Defaults to On on Darwin and on Linux."
81
- "${SWIFT_STDLIB_ENABLE_PRESPECIALIZATION_default} " )
82
-
83
- option (SWIFT_STDLIB_ENABLE_UNICODE_DATA
84
- "Should stdlib be built with full unicode support"
85
- TRUE )
86
-
87
34
# New options should be added to stdlib/cmake/modules/StdlibOptions.cmake,
88
35
# so that they are considered in configurations using StandaloneOverlay.cmake
89
36
include (StdlibOptions )
0 commit comments