From 22e8ff2425cb1efa603d7decd7b8e86f04e20102 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Tue, 16 Jun 2026 11:09:45 +0200 Subject: [PATCH] gh-14208: Only set CXX and CC flags for linux (gh-14225) --- .github/workflows/src/release-build.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/src/release-build.sh b/.github/workflows/src/release-build.sh index 2b4feadb7..d3e9720e6 100644 --- a/.github/workflows/src/release-build.sh +++ b/.github/workflows/src/release-build.sh @@ -8,12 +8,14 @@ if command -v apt-get &> /dev/null; then sudo apt-get install -y xvfb libnvidia-egl-wayland1 mesa-utils libgl1-mesa-dri fi -if test -d "$HOME/.mozbuild/clang/bin"; then - export CC="$HOME/.mozbuild/clang/bin/clang" - export CXX="$HOME/.mozbuild/clang/bin/clang++" -else - export CC=clang - export CXX=clang++ +if ! test "$ZEN_CROSS_COMPILING" && test "$(uname -s)" = "Linux"; then + if test -d "$HOME/.mozbuild/clang/bin"; then + export CC="$HOME/.mozbuild/clang/bin/clang" + export CXX="$HOME/.mozbuild/clang/bin/clang++" + else + export CC=clang + export CXX=clang++ + fi fi mkdir -p ~/.zen-keys