File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ install(FILES
8
8
${SWIFTPM_BUILD_DIR} /swiftpm-xctest-helper
9
9
DESTINATION libexec/swift/pm )
10
10
11
+ if (INSTALL_LIBSWIFTPM )
12
+
11
13
list (APPEND LIBSPM_MODULES TSCLibc )
12
14
list (APPEND LIBSPM_MODULES TSCBasic )
13
15
list (APPEND LIBSPM_MODULES TSCUtility )
@@ -37,3 +39,4 @@ install(DIRECTORY
37
39
install (FILES
38
40
${SWIFTPM_BUILD_DIR} /libSwiftPM${CMAKE_SHARED_LIBRARY_SUFFIX}
39
41
DESTINATION local/lib/swift/pm )
42
+ endif ()
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ def bootstrap(args):
213
213
"-DUSE_VENDORED_TSC=ON" ,
214
214
"-DSWIFTPM_BUILD_DIR=" + swiftpm_build_path ,
215
215
"-DCMAKE_INSTALL_PREFIX=" + args .install_prefixes [0 ],
216
+ "-DINSTALL_LIBSWIFTPM=" + ("ON" if args .install_libspm else "OFF" ),
216
217
g_project_root ,
217
218
]
218
219
print (' ' .join (cmd ))
@@ -299,6 +300,8 @@ def main():
299
300
help = "Path to llbuild build directory" )
300
301
parser .add_argument ("--release" , action = "store_true" ,
301
302
help = "Build stage 2 for release" )
303
+ parser .add_argument ("--install-libspm" , action = "store_true" ,
304
+ help = "Install libSwiftPM" )
302
305
parser .add_argument ("--prefix" , dest = "install_prefixes" , nargs = '*' ,
303
306
help = "use PATHS as the prefixes for installing "
304
307
"[%(default)s]" ,
You can’t perform that action at this time.
0 commit comments