#52996: 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 42-x-y backport for it.
Stacked: this branch includes the 42-x-y backports of #52059 (#52977) and #52745 (#52987) 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: BUILD_TOOLS_SHA goes to 458c9bf (from 4b75f1f after the #52059 backport). script/build-stats.mjs on this branch predates the object-checksum feature, so only the applicable part of that file's change is ported (read the tail of siso.INFO instead of the whole file — needed once the second toolchain is in the graph); the worker-thread hashing hunks have nothing to apply to. The "Validate inputs" step context in build-electron/action.yml is main-only. thin_lto_enable_cache, apple_toolchain/mac_bin_path and the dist_zip flatten plumbing all exist on this branch; all other hunks are identical to main.
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