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