File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -90,4 +90,5 @@ add_subdirectory(Demangling)
9090add_subdirectory (Threading)
9191add_subdirectory (runtime)
9292add_subdirectory (stubs)
93+ add_subdirectory (CommandLineSupport)
9394add_subdirectory (core)
Original file line number Diff line number Diff line change 1+ if (SwiftCore_ENABLE_COMMANDLINE_SUPPORT)
2+ add_library (swiftCommandLineSupport STATIC CommandLine.cpp)
3+ target_include_directories (swiftCommandLineSupport PRIVATE
4+ "${SwiftCore_SWIFTC_SOURCE_DIR} /include"
5+ "${PROJECT_BINARY_DIR} /include" )
6+
7+ target_link_libraries (swiftCommandLineSupport PRIVATE
8+ swiftShims)
9+
10+ if (NOT BUILD_SHARED_LIBS )
11+ install (TARGETS swiftCommandLineSupport)
12+ endif ()
13+ endif ()
Original file line number Diff line number Diff line change @@ -241,9 +241,9 @@ add_library(swiftCore
241241
242242set_target_properties (swiftCore PROPERTIES Swift_MODULE_NAME Swift)
243243
244- if (SwiftCore_ENABLE_COMMANDLINE)
245- # TODO: Pull in the CommandLine C++ files too
244+ if (SwiftCore_ENABLE_COMMANDLINE_SUPPORT)
246245 target_sources (swiftCore PRIVATE CommandLine.swift)
246+ target_link_libraries (swiftCore PRIVATE swiftCommandLineSupport)
247247endif ()
248248
249249if (SwiftCore_ENABLE_VECTOR_TYPES)
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ set(CoreLibs
6565 runtime
6666 CompatibilityOverride
6767 stubs
68+ CommandLineSupport
6869 core)
6970
7071 # Add these as we get them building
You can’t perform that action at this time.
0 commit comments