Skip to content

Commit 82cd80f

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

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
@@ -407,42 +407,13 @@ def install_swiftpm(prefix, args):
407407
dest = os.path.join(prefix, "libexec", "swift", "pm")
408408
install_binary(args, "swiftpm-xctest-helper", dest)
409409

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

414-
files_to_install = ["libPackageDescription" + g_shared_lib_suffix]
415-
if platform.system() == 'Darwin':
416-
files_to_install.append("PackageDescription.swiftinterface")
417-
else:
418-
files_to_install.append("PackageDescription.swiftmodule")
419-
files_to_install.append("PackageDescription.swiftdoc")
420-
421-
for file in files_to_install:
422-
src = os.path.join(runtime_lib_src, "ManifestAPI", file)
423-
dest = os.path.join(runtime_lib_dest, "ManifestAPI", file)
424-
mkdir_p(os.path.dirname(dest))
425-
426-
note("Installing %s to %s" % (src, dest))
427-
428-
file_util.copy_file(src, dest, update=1)
429-
430-
# Install PackagePlugin runtime libraries.
431-
files_to_install = ["libPackagePlugin" + g_shared_lib_suffix]
432-
if platform.system() == 'Darwin':
433-
files_to_install.append("PackagePlugin.swiftinterface")
434-
else:
435-
files_to_install.append("PackagePlugin.swiftmodule")
436-
files_to_install.append("PackagePlugin.swiftdoc")
437-
438-
for file in files_to_install:
439-
src = os.path.join(runtime_lib_src, "PluginAPI", file)
440-
dest = os.path.join(runtime_lib_dest, "PluginAPI", file)
441-
mkdir_p(os.path.dirname(dest))
442-
443-
note("Installing %s to %s" % (src, dest))
444-
445-
file_util.copy_file(src, dest, update=1)
414+
# Install the PackagePlugin library and associated modules.
415+
dest = os.path.join(prefix, "lib", "swift", "pm", "PluginAPI")
416+
install_dylib(args, "PackagePlugin", dest, ["PackagePlugin"])
446417

447418

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

0 commit comments

Comments
 (0)