@@ -72,9 +72,14 @@ endif()
72
72
# User-configurable options for the standard library.
73
73
#
74
74
75
+ # New options should be added to stdlib/cmake/modules/StdlibOptions.cmake,
76
+ # so that they are considered in configurations using StandaloneOverlay.cmake
77
+
75
78
# NOTE: Some of these variables are also initialized in StandaloneOverlay.cmake
76
79
# so that interfaces are emitted when overlays are separately built.
77
80
81
+ # TODO: migrate this section to StdlibOptions.cmake to reduce duplication
82
+
78
83
set (SWIFT_STDLIB_EXTRA_SWIFT_COMPILE_FLAGS "" CACHE STRING
79
84
"Extra flags to pass when compiling swift stdlib files" )
80
85
@@ -89,10 +94,6 @@ option(SWIFT_ENABLE_MODULE_INTERFACES
89
94
"Generate .swiftinterface files alongside .swiftmodule files"
90
95
"${SWIFT_STDLIB_STABLE_ABI} " )
91
96
92
- option (SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT
93
- "Support back-deployment of built binaries to older OS versions."
94
- TRUE )
95
-
96
97
option (SWIFT_STDLIB_HAS_DLADDR
97
98
"Build stdlib assuming the runtime environment runtime environment provides dladdr API."
98
99
TRUE )
@@ -133,10 +134,6 @@ option(SWIFT_STDLIB_PASSTHROUGH_METADATA_ALLOCATOR
133
134
"Build stdlib without a custom implementation of MetadataAllocator, relying on malloc+free instead."
134
135
FALSE )
135
136
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
-
140
137
option (SWIFT_STDLIB_HAS_COMMANDLINE
141
138
"Build stdlib with the CommandLine enum and support for argv/argc."
142
139
TRUE )
@@ -164,10 +161,6 @@ option(SWIFT_ENABLE_REFLECTION
164
161
"Build stdlib with support for runtime reflection and mirrors."
165
162
TRUE )
166
163
167
- option (SWIFT_STDLIB_BUILD_PRIVATE
168
- "Build private part of the Standard Library."
169
- TRUE )
170
-
171
164
if (SWIFT_STDLIB_SINGLE_THREADED_RUNTIME )
172
165
set (SWIFT_CONCURRENCY_GLOBAL_EXECUTOR_default "singlethreaded" )
173
166
else ()
@@ -178,6 +171,10 @@ set(SWIFT_CONCURRENCY_GLOBAL_EXECUTOR
178
171
"${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR_default} " CACHE STRING
179
172
"Build the concurrency library to use the given global executor (options: dispatch, singlethreaded, hooked)" )
180
173
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
+
181
178
#
182
179
# End of user-configurable options.
183
180
#
0 commit comments