Skip to content

Commit 14fa952

Browse files
Fix macOS ARM builds
1 parent 443f959 commit 14fa952

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
run: |
2424
xcode-select --install || true # already installed on github
2525
brew install pkg-config libffi ninja make SDL2
26+
# After brew install libffi make sdl2 etc.
27+
export LDFLAGS="-L/opt/homebrew/opt/libffi/lib"
28+
export CPPFLAGS="-I/opt/homebrew/opt/libffi/include"
29+
export PKG_CONFIG_PATH="/opt/homebrew/opt/libffi/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
2630
2731
- name: Show version numbers
2832
run: |

0 commit comments

Comments
 (0)