From 93ba8fb35ecf1b203c002c0a3561b0c810bf85c8 Mon Sep 17 00:00:00 2001 From: Linmiao Xu Date: Thu, 9 Apr 2026 21:42:28 +0200 Subject: [PATCH] CI: test for macOS g++ pretending to be clang++ Avoids compilation errors on macOS by ensuring flags specific to g++ are applied to actual g++ closes https://github.com/official-stockfish/Stockfish/pull/6709 No functional change --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f0da51e7e..ab0cc52d4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -306,6 +306,13 @@ jobs: make -j4 ARCH=apple-silicon build ../tests/signature.sh $benchref + - name: Test apple-silicon build with system g++ (macOS g++ == clang++) + if: matrix.config.run_m1_tests + run: | + make clean + env -u COMPCXX make -j4 ARCH=apple-silicon build COMP=gcc + ../tests/signature.sh $benchref + # armv8 tests - name: Test armv8 build