Skip to content

Commit

Permalink
ci: Fix deployment of GCC < 14 under macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark committed May 13, 2024
1 parent bd8fd9e commit ed3de33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ jobs:
# from ../src/include/general.h:62,
# from ../src/command.c:28:
# /opt/homebrew/Cellar/gcc@11/11.4.0/lib/gcc/11/gcc/aarch64-apple-darwin23/11/include-fixed/AvailabilityInternal.h:162:10: fatal error: AvailabilityInternalLegacy.h: No such file or directory
# FIXME: remove the brew unlink step once `gcc` itself works
- os: macos-latest
fail-fast: false

Expand All @@ -465,6 +466,7 @@ jobs:
# Install a suitable system compiler for the build
- name: Setup Homebrew GCC
run: |
brew unlink gcc
brew install ${{ matrix.compiler }}
CC=${COMPILER/@/-}
CXX=${CC/#gcc/g++}
Expand Down

0 comments on commit ed3de33

Please sign in to comment.