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)
90
90
add_subdirectory (Threading )
91
91
add_subdirectory (runtime )
92
92
add_subdirectory (stubs )
93
+ add_subdirectory (CommandLineSupport )
93
94
add_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
241
241
242
242
set_target_properties (swiftCore PROPERTIES Swift_MODULE_NAME Swift )
243
243
244
- if (SwiftCore_ENABLE_COMMANDLINE )
245
- # TODO: Pull in the CommandLine C++ files too
244
+ if (SwiftCore_ENABLE_COMMANDLINE_SUPPORT )
246
245
target_sources (swiftCore PRIVATE CommandLine.swift )
246
+ target_link_libraries (swiftCore PRIVATE swiftCommandLineSupport )
247
247
endif ()
248
248
249
249
if (SwiftCore_ENABLE_VECTOR_TYPES )
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ set(CoreLibs
65
65
runtime
66
66
CompatibilityOverride
67
67
stubs
68
+ CommandLineSupport
68
69
core )
69
70
70
71
# Add these as we get them building
You can’t perform that action at this time.
0 commit comments