Skip to content

Commit 3de0d18

Browse files
committed
Restore the bootstrap script changes to install the SwiftPM-built PackageDescription and PackagePlugin libraries"
This reverts commit 9a52971.
1 parent 9a52971 commit 3de0d18

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

Utilities/bootstrap

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -396,42 +396,13 @@ def install_swiftpm(prefix, args):
396396
dest = os.path.join(prefix, "libexec", "swift", "pm")
397397
install_binary(args, "swiftpm-xctest-helper", dest)
398398

399-
# Install PackageDescription runtime libraries.
400-
runtime_lib_dest = os.path.join(prefix, "lib", "swift", "pm")
401-
runtime_lib_src = os.path.join(args.bootstrap_dir, "pm")
399+
# Install the PackageDescription library and associated modules.
400+
dest = os.path.join(prefix, "lib", "swift", "pm", "ManifestAPI")
401+
install_dylib(args, "PackageDescription", dest, ["PackageDescription"])
402402

403-
files_to_install = ["libPackageDescription" + g_shared_lib_suffix]
404-
if platform.system() == 'Darwin':
405-
files_to_install.append("PackageDescription.swiftinterface")
406-
else:
407-
files_to_install.append("PackageDescription.swiftmodule")
408-
files_to_install.append("PackageDescription.swiftdoc")
409-
410-
for file in files_to_install:
411-
src = os.path.join(runtime_lib_src, "ManifestAPI", file)
412-
dest = os.path.join(runtime_lib_dest, "ManifestAPI", file)
413-
mkdir_p(os.path.dirname(dest))
414-
415-
note("Installing %s to %s" % (src, dest))
416-
417-
file_util.copy_file(src, dest, update=1)
418-
419-
# Install PackagePlugin runtime libraries.
420-
files_to_install = ["libPackagePlugin" + g_shared_lib_suffix]
421-
if platform.system() == 'Darwin':
422-
files_to_install.append("PackagePlugin.swiftinterface")
423-
else:
424-
files_to_install.append("PackagePlugin.swiftmodule")
425-
files_to_install.append("PackagePlugin.swiftdoc")
426-
427-
for file in files_to_install:
428-
src = os.path.join(runtime_lib_src, "PluginAPI", file)
429-
dest = os.path.join(runtime_lib_dest, "PluginAPI", file)
430-
mkdir_p(os.path.dirname(dest))
431-
432-
note("Installing %s to %s" % (src, dest))
433-
434-
file_util.copy_file(src, dest, update=1)
403+
# Install the PackagePlugin library and associated modules.
404+
dest = os.path.join(prefix, "lib", "swift", "pm", "PluginAPI")
405+
install_dylib(args, "PackagePlugin", dest, ["PackagePlugin"])
435406

436407

437408
# Helper function that installs a dynamic library and a set of modules to a particular directory.

0 commit comments

Comments
 (0)