Repository navigation
build: fix mksnapshot path in mksnapshot_args for flattened macOS zips - #53372
Merged
Conversation
Since the macOS release snapshot tools moved into a secondary toolchain (#52884), gn desc emits the mksnapshot executable path as ./clang_<arch>_snapshot/mksnapshot, but electron_mksnapshot_zip flattens mksnapshot.zip so the binary lives at the zip root. The Fixup Mksnapshot step never rewrote that first argument, so every darwin mksnapshot.zip published since then ships an mksnapshot_args pointing at a path that does not exist in the zip and @electron/mksnapshot fails with ENOENT. Rewrite the leading ./clang_*_snapshot/ prefix to ./ so the args file matches the flattened layout. Linux is unaffected: its cross-arch toolchain dir (clang_x64_v8_arm64) does not match the pattern and its zips are not flattened. Co-authored-by: Claude <[email protected]>
2 tasks done
MarshallOfSound
approved these changes
Sep 1, 2026
MarshallOfSound
enabled auto-merge (squash)
September 1, 2026 17:32
MarshallOfSound
deleted the
trop/42-x-y-bp-build-fix-mksnapshot-path-in-mksnapshot_args-for-flattened-macos-zips-1788278139537
branch
September 1, 2026 17:45
|
No Release Notes |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport of #53363
See that PR for details.
Notes: none