You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split out CommandLine enum into a separate static library, allow removing it from stdlib (#39591)
This is for the 'freestanding' build to stop assuming the platform has argc/argv.
- Introduce a new sub-library, libswiftCommandLineSupport.a
- Move stubs/CommandLine.cpp into this library
- Conditionally embed it into libswiftCore
- Conditionally embed it into libswiftPrivateLibcExtras if not in libswiftCore to support testing
- Add SWIFT_STDLIB_HAS_COMMANDLINE CMake (and build-script) flag
"Build stdlib without a custom implementation of MetadataAllocator, relying on malloc+free instead."
128
128
FALSE)
129
129
130
+
option(SWIFT_STDLIB_HAS_COMMANDLINE
131
+
"Build stdlib with the CommandLine enum and support for argv/argc."
132
+
TRUE)
133
+
130
134
option(SWIFT_BUILD_TEST_SUPPORT_MODULES
131
135
"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."
0 commit comments