mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
9 lines
292 B
CMake
9 lines
292 B
CMake
add_swift_target_library(swiftCommandLineSupport
|
|
STATIC DONT_EMBED_BITCODE NOSWIFTRT
|
|
CommandLine.cpp
|
|
C_COMPILE_FLAGS ${SWIFT_RUNTIME_CXX_FLAGS}
|
|
LINK_FLAGS ${SWIFT_RUNTIME_LINK_FLAGS}
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
INSTALL_IN_COMPONENT never_install
|
|
)
|