Skip to content

Commit 03ba4c1

Browse files
committed
Unset Metal toolchain
Signed-off-by: Adin Cebic <[email protected]>
1 parent aa57d46 commit 03ba4c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xcodeproj/internal/templates/bazel_build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ if [[ -n "${TOOLCHAINS-}" ]]; then
103103
fi
104104
fi
105105

106+
# We unset Metal toolchains since Xcode 26+ complains when that's passed as action_env
107+
# Older Xcode versions don't seem to populate this variable with Metal toolchain
108+
# This is why there is no version check
109+
if [[ "${toolchain:-}" == *"com.apple.dt.toolchain.Metal"* ]]; then
110+
unset toolchain
111+
fi
112+
106113
# Build
107114

108115
echo "Starting Bazel build"

0 commit comments

Comments
 (0)