Skip to content

Commit 9e864c4

Browse files
committed
Only pass --enable-parseable-module-interfaces when building PackageDescription and PackagePlugin.
This avoids a bunch of probably-harmless-but-still-worrisome warnings that happen when trying to build all of the rest of SwiftPM this way.
1 parent 3810a14 commit 9e864c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Utilities/bootstrap

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,6 @@ def build_swiftpm_with_swiftpm(args, integrated_swift_driver):
629629
if integrated_swift_driver:
630630
swiftpm_args.append("--use-integrated-swift-driver")
631631

632-
swiftpm_args.append("--enable-parseable-module-interfaces")
633-
634632
# Build SwiftPM, including libSwiftPM, all the command line tools, and the current variant of PackageDescription.
635633
call_swiftpm(args, swiftpm_args)
636634

@@ -648,6 +646,11 @@ def build_swiftpm_with_swiftpm(args, integrated_swift_driver):
648646
mkdir_p(lib_dir)
649647

650648
symlink_force(os.path.join(args.bootstrap_dir, "pm"), os.path.join(lib_dir, "pm"))
649+
650+
# Build PackageDescription and PackagePlugin with parseable module interfaces enabled.
651+
call_swiftpm(args, swiftpm_args + ["--product", "PackageDescription", "--enable-parseable-module-interfaces"])
652+
call_swiftpm(args, swiftpm_args + ["--product", "PackagePlugin", "--enable-parseable-module-interfaces"])
653+
651654

652655
def call_swiftpm(args, cmd, cwd=None):
653656
"""Calls a SwiftPM binary with the necessary environment variables and flags."""

0 commit comments

Comments
 (0)