Skip to content

Commit

Permalink
Only pass --enable-parseable-module-interfaces when building Packag…
Browse files Browse the repository at this point in the history
…eDescription 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.
  • Loading branch information
abertelrud committed May 25, 2021
1 parent 3810a14 commit 9e864c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Utilities/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,6 @@ def build_swiftpm_with_swiftpm(args, integrated_swift_driver):
if integrated_swift_driver:
swiftpm_args.append("--use-integrated-swift-driver")

swiftpm_args.append("--enable-parseable-module-interfaces")

# Build SwiftPM, including libSwiftPM, all the command line tools, and the current variant of PackageDescription.
call_swiftpm(args, swiftpm_args)

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

symlink_force(os.path.join(args.bootstrap_dir, "pm"), os.path.join(lib_dir, "pm"))

# Build PackageDescription and PackagePlugin with parseable module interfaces enabled.
call_swiftpm(args, swiftpm_args + ["--product", "PackageDescription", "--enable-parseable-module-interfaces"])
call_swiftpm(args, swiftpm_args + ["--product", "PackagePlugin", "--enable-parseable-module-interfaces"])


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

0 comments on commit 9e864c4

Please sign in to comment.