Skip to content

Commit

Permalink
forbidden patch
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Sep 18, 2024
1 parent e8a5b78 commit e08cf8d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e08cf8d

Please sign in to comment.