Skip to content

Conversation

VerteDinde
Copy link
Member

@VerteDinde VerteDinde commented Oct 5, 2025

mac: handle Metal toolchain being unbundled from Xcode 26

The Metal toolchain was formerly part of Xcode, but in Xcode 26, it has
been unbundled and is now a separate install. Attempting to use the
Metal toolchain without installing it results in a build error, such as:

error: error: cannot execute tool 'metal' due to missing Metal
Toolchain; use: xcodebuild -downloadComponent MetalToolchain

By running the suggested command, the Metal toolchain can be installed,
but the existing angle build does not know how to find it correctly.

For system Xcode installations, tools from the Metal toolchain (metal
and metallib) can be run via xcrun. This construct should work
equally well for older Xcode versions, for situations where it’s still
in use.

For the hermetic toolchain, we’ll continue splicing the Metal toolchain
into the location it had previously been avialable (see
https://chromium-review.googlesource.com/c/6950738), although this is
subject to change in the future.

Bug: chromium:423933062, chromium:445400016
Change-Id: I139eca51938f7cecfec9b90fd488947160ef4ec9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6955000
Auto-Submit: Mark Mentovai [email protected]
Commit-Queue: Mark Mentovai [email protected]
Reviewed-by: Geoff Lang [email protected]

Notes: Backported fix for chromium:423933062, chromium:445400016.

@VerteDinde VerteDinde requested a review from a team as a code owner October 5, 2025 04:24
@VerteDinde VerteDinde added semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking patch-metal-angle labels Oct 5, 2025
@VerteDinde VerteDinde merged commit 52e4d77 into patch-metal-angle Oct 5, 2025
18 of 21 checks passed
@VerteDinde VerteDinde deleted the cherry-pick/patch-metal-angle/angle/2f564f1ca07b branch October 5, 2025 04:25
@release-clerk
Copy link

release-clerk bot commented Oct 5, 2025

Release Notes Persisted

Backported fix for chromium:423933062, chromium:445400016.

jkleinsc pushed a commit that referenced this pull request Oct 6, 2025
* chore: add metal patch dir

* chore: cherry-pick 2f564f1ca07b from angle (#48465)

* chore: update patch
trop bot added a commit that referenced this pull request Oct 6, 2025
trop bot added a commit that referenced this pull request Oct 6, 2025
trop bot added a commit that referenced this pull request Oct 6, 2025
VerteDinde added a commit that referenced this pull request Oct 6, 2025
* chore: add metal patch dir

Co-authored-by: Keeley Hammond <[email protected]>

* chore: cherry-pick 2f564f1ca07b from angle (#48465)

Co-authored-by: Keeley Hammond <[email protected]>

* chore: update patch

Co-authored-by: Keeley Hammond <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <[email protected]>
codebytere pushed a commit that referenced this pull request Oct 9, 2025
codebytere pushed a commit that referenced this pull request Oct 9, 2025
jkleinsc pushed a commit that referenced this pull request Oct 9, 2025
* chore: add metal patch dir

Co-authored-by: Keeley Hammond <[email protected]>

* chore: cherry-pick 2f564f1ca07b from angle (#48465)

Co-authored-by: Keeley Hammond <[email protected]>

* chore: update patch

Co-authored-by: Keeley Hammond <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <[email protected]>
codebytere pushed a commit that referenced this pull request Oct 10, 2025
* chore: add metal patch dir

Co-authored-by: Keeley Hammond <[email protected]>

* chore: cherry-pick 2f564f1ca07b from angle (#48465)

Co-authored-by: Keeley Hammond <[email protected]>

* chore: update patch

Co-authored-by: Keeley Hammond <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Keeley Hammond <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-check-skip Skip trop's backport validity checking patch-metal-angle semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant