@@ -210,12 +210,12 @@ def install(args, build_dir):
210
210
211
211
# Binary Swift Modules:
212
212
# swift-driver: SwiftDriver.swiftmodule, SwiftOptions.swiftmodule
213
- # TODO: swift-argument-parser: ArgumentParser.swiftmodule
213
+ # TODO: swift-argument-parser: ArgumentParser.swiftmodule (disabled until needed)
214
214
# swift-tools-support-core: TSCUtility.swiftmodule, TSCLibc.swiftmodule, TSCBasic.swiftmodule
215
215
install_binary_swift_modules (args , build_dir , toolchain_lib )
216
216
217
217
# Modulemaps for C Modules:
218
- # llbuild, TSCclibc
218
+ # TSCclibc
219
219
install_c_module_includes (args , build_dir , toolchain_include )
220
220
221
221
# Install universal binaries for swift-driver and swift-help into the toolchain bin
@@ -233,13 +233,7 @@ def install_executables(args, build_dir, universal_bin_dir, toolchain_bin_dir):
233
233
delete_rpath (driver_lib_dir_path , exe_bin_path , args .verbose )
234
234
delete_rpath (tsc_lib_dir_path , exe_bin_path , args .verbose )
235
235
236
- # Only swift-driver relies libllbuild
237
- if exe == 'swift-driver' :
238
- llbuild_lib_dir_path = os .path .join (build_dir , arch + '-apple-macos' + macos_deployment_target ,
239
- 'llbuild' , 'lib' )
240
- delete_rpath (llbuild_lib_dir_path , exe_bin_path , args .verbose )
241
-
242
- # Point to the installed toolchain's lib
236
+ # Point to the installation toolchain's lib directory
243
237
add_rpath ('@executable_path/../lib/swift/macosx' , exe_bin_path , args .verbose )
244
238
245
239
# Merge the multiple architecture binaries into a universal binary and install
@@ -256,16 +250,13 @@ def install_executables(args, build_dir, universal_bin_dir, toolchain_bin_dir):
256
250
257
251
# Install shared libraries for the driver and its dependencies into the toolchain
258
252
def install_libraries (args , build_dir , universal_lib_dir , toolchain_lib_dir ):
259
- # Fixup the llbuild and SwiftDriver rpath for libSwiftDriver
253
+ # Fixup the SwiftDriver rpath for libSwiftDriver
260
254
for arch in macos_target_architectures :
261
255
lib_path = os .path .join (build_dir , arch + '-apple-macos' + macos_deployment_target ,
262
256
'swift-driver' , 'lib' , 'libSwiftDriver' + shared_lib_ext )
263
257
driver_lib_dir_path = os .path .join (build_dir , arch + '-apple-macos' + macos_deployment_target ,
264
258
'swift-driver' , 'lib' )
265
- llbuild_lib_dir_path = os .path .join (build_dir , arch + '-apple-macos' + macos_deployment_target ,
266
- 'llbuild' , 'lib' )
267
259
delete_rpath (driver_lib_dir_path , lib_path , args .verbose )
268
- delete_rpath (llbuild_lib_dir_path , lib_path , args .verbose )
269
260
270
261
# Fixup the TSC rpath for libSwiftDriver and libSwiftOptions
271
262
for lib in ['libSwiftDriver' , 'libSwiftOptions' ]:
@@ -329,11 +320,6 @@ def install_c_module_includes(args, build_dir, toolchain_include_dir):
329
320
'TSCclibc' , 'include' )
330
321
install_include_artifacts (args , toolchain_include_dir , tscc_include_dir , 'TSCclibc' )
331
322
332
- # llbuild C module's modulemap and header files
333
- llbuild_include_dir = os .path .join (os .path .dirname (args .package_path ), 'llbuild' , 'products' ,
334
- 'libllbuild' , 'include' )
335
- install_include_artifacts (args , toolchain_include_dir , llbuild_include_dir , 'llbuild' )
336
-
337
323
def install_module (args , build_dir , product_subpath , toolchain_lib , module_name , source_package ):
338
324
toolchain_module_dir = os .path .join (toolchain_lib , module_name + '.swiftmodule' )
339
325
mkdir_p (toolchain_module_dir )
@@ -372,6 +358,8 @@ def build_for_toolchain_install(args, toolchain_bin, build_dir):
372
358
# Target directory to build distribution artifacts
373
359
cmake_target_dir = os .path .join (build_dir , target )
374
360
# LLBuild
361
+ # We build llbuild for the sake of building the entirety of SwiftDriver project,
362
+ # but it is not a dependency of any of the installed artifacts, nor is it itself installed.
375
363
build_llbuild_using_cmake (args , target , swiftc_exec , cmake_target_dir , base_cmake_flags )
376
364
# TSC
377
365
build_tsc_using_cmake (args , target , swiftc_exec , cmake_target_dir , base_cmake_flags )
0 commit comments