diff --git a/.github/workflows/ci_macos.yml b/.github/workflows/ci_macos.yml index 2adcb8e2..aeda9a27 100644 --- a/.github/workflows/ci_macos.yml +++ b/.github/workflows/ci_macos.yml @@ -43,6 +43,19 @@ jobs: compiler: ${{ matrix.compiler }} ccache_size: 75M + # Only fixed in gcc-14 and results in hard compiler error + # https://github.com/gcc-mirror/gcc/commit/2322b6dd4a8b0b0a771a696368eefadc7be24ddc + - name: Preposterous patch + if: contains(matrix.compiler, 'gcc') && matrix.compiler != "gcc-14" + run: | + GCC_STRING="${{ matrix.compiler }}" + GCC_VERSION="${GCC_STRING:4}" + INSTALL_PREFIX="$(brew --prefix gcc@${GCC_VERSION})" + FILE="${INSTALL_PREFIX}/lib/gcc/${GCC_VERSION}/gcc/aarch64-apple-darwin23/${GCC_VERSION}/include/arm_acle.h" + sed -i 's@return __builtin_aarch64_rndrrs (__res);@return __builtin_aarch64_rndrrs ((long unsigned int*)__res);@g' "${FILE}" + sed -i 's@return __builtin_aarch64_rndr (__res);@return __builtin_aarch64_rndr ((long unsigned int*)__res);@g' "${FILE}" + cat "${FILE}" + - name: Configure tests run: | mkdir build