#53008: build: trim the non-link overhead of macOS release builds
Backport of #52883
See that PR for details. This also carries #52896, which was merged into #52883's branch and landed on main inside the same squash commit (d36eebf), so there is no separate 41-x-y backport for it.
Stacked: this branch includes the 41-x-y backports of #52059 (#53005) and #52745 (#53007) because this change edits the BUILD_TOOLS_SHA line and the symbol-archive code they introduce. Please merge those two first; this PR's diff then reduces to the #52883 change.
Manual backport notes: same shape as the 42-x-y backport (#52996): BUILD_TOOLS_SHA goes to 458c9bf; script/build-stats.mjs predates the object-checksum feature so only the siso.INFO tail-read part applies; thin_lto_enable_cache, apple_toolchain/mac_bin_path and the dist_zip flatten plumbing all exist on this branch. Note this pairs with the ThinLTO re-enable backport (#51669 → #53001): without ThinLTO the new snapshot toolchain is harmless but pointless.
Notes: none
Backport Information
Semver Impact
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron