@@ -72,9 +72,14 @@ endif()
7272# User-configurable options for the standard library.
7373#
7474
75+ # New options should be added to stdlib/cmake/modules/StdlibOptions.cmake,
76+ # so that they are considered in configurations using StandaloneOverlay.cmake
77+
7578# NOTE: Some of these variables are also initialized in StandaloneOverlay.cmake
7679# so that interfaces are emitted when overlays are separately built.
7780
81+ # TODO: migrate this section to StdlibOptions.cmake to reduce duplication
82+
7883set (SWIFT_STDLIB_EXTRA_SWIFT_COMPILE_FLAGS "" CACHE STRING
7984 "Extra flags to pass when compiling swift stdlib files" )
8085
@@ -89,10 +94,6 @@ option(SWIFT_ENABLE_MODULE_INTERFACES
8994 "Generate .swiftinterface files alongside .swiftmodule files"
9095 "${SWIFT_STDLIB_STABLE_ABI} " )
9196
92- option (SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT
93- "Support back-deployment of built binaries to older OS versions."
94- TRUE )
95-
9697option (SWIFT_STDLIB_HAS_DLADDR
9798 "Build stdlib assuming the runtime environment runtime environment provides dladdr API."
9899 TRUE )
@@ -133,10 +134,6 @@ option(SWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR
133134 "Build stdlib without a custom implementation of MetadataAllocator, relying on malloc+free instead."
134135 FALSE )
135136
136- option (SWIFT_STDLIB_SHORT_MANGLING_LOOKUPS
137- "Build stdlib with fast-path context descriptor lookups based on well-known short manglings."
138- TRUE )
139-
140137option (SWIFT_STDLIB_HAS_COMMANDLINE
141138 "Build stdlib with the CommandLine enum and support for argv/argc."
142139 TRUE )
@@ -164,10 +161,6 @@ option(SWIFT_ENABLE_REFLECTION
164161 "Build stdlib with support for runtime reflection and mirrors."
165162 TRUE )
166163
167- option (SWIFT_STDLIB_BUILD_PRIVATE
168- "Build private part of the Standard Library."
169- TRUE )
170-
171164if (SWIFT_STDLIB_SINGLE_THREADED_RUNTIME)
172165 set (SWIFT_CONCURRENCY_GLOBAL_EXECUTOR_default "singlethreaded" )
173166else ()
@@ -178,6 +171,10 @@ set(SWIFT_CONCURRENCY_GLOBAL_EXECUTOR
178171 "${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR_default} " CACHE STRING
179172 "Build the concurrency library to use the given global executor (options: dispatch, singlethreaded, hooked)" )
180173
174+ # New options should be added to stdlib/cmake/modules/StdlibOptions.cmake,
175+ # so that they are considered in configurations using StandaloneOverlay.cmake
176+ include (StdlibOptions)
177+
181178#
182179# End of user-configurable options.
183180#
0 commit comments