This repository was archived by the owner on Dec 4, 2026. It is now read-only.
Repository navigation
Swift Build reuses its build description across runs; packages built with Swift Build by default - #13
Merged
Merged
Conversation
…environment Swift Build keys its build description by the environment too: the wrapper's events file path (and the stand-in's notes path), different on every run, made every build compute a new description and rerun each product's Info.plist, CopySwiftLibs and CodeSign tasks. Without them a second build reuses the description as Xcode's does (a package's next build: PruneExplicitPrecompiledModules only, as Apple's). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…EBUILD_PACKAGE_ENGINE=swiftpm: SwiftPM's own build) Measured against Apple's goldens (x86sim tests/xctest-parity, packages from empty derived data on both sides): multi-swt 400 differences (4111 with SwiftPM's build), multi-all 200 (363), multi-sel-swt 137 (310) on iOS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Packages built as Xcode builds them, and Swift Build builds that are incremental like Xcode's.
PruneExplicitPrecompiledModules, as Apple's next build does. Xcode-project builds benefit as well.XCODEBUILD_PACKAGE_ENGINE=swiftpmbrings back SwiftPM's own build.Measured against Apple's goldens in x86sim's
tests/xctest-parity, with packages built from empty derived data on both sides:Goes with x86sim's t3/parity-packages-swiftbuild PR.
🤖 Generated with Claude Code