Skip to content

Commit

Permalink
Use GNU patch on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Sep 14, 2024
1 parent 1e58729 commit 43ace8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:

- name: Build toolchain
run: |
brew reinstall ninja zstd binutils
brew reinstall ninja zstd binutils gpatch
./build.sh clone build
mkdir tmp
tar c out | xz --x86 --lzma2 > tmp/out.x64.tar.xz
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

- name: Build toolchain
run: |
brew reinstall ninja zstd binutils
brew reinstall ninja zstd binutils gpatch
./build.sh clone build
mkdir tmp
tar c out | xz > tmp/out.arm64.tar.xz
Expand Down
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if [ $OS = "darwin" ]; then
NATIVE_TRIPLE="${NATIVE_ARCH}-apple-darwin"
DYN_EXT='dylib'
EXE_FMT='Mach-O'
# Always use GNU patch
export PATH="$(brew --prefix)/opt/gpatch/bin:$PATH"
else
NDK_DIRNAME='linux-x86_64'
TRIPLE="${ARCH}-unknown-linux-gnu"
Expand Down

0 comments on commit 43ace8a

Please sign in to comment.