Skip to content

Commit

Permalink
Fix MacOS arm64 builds on 0.2.X
Browse files Browse the repository at this point in the history
  • Loading branch information
jllllll committed Sep 18, 2023
1 parent 91026c6 commit 0b12e58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-wheels-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ jobs:
- name: Build Wheel
run: |
export CMAKE_ARGS="-DLLAMA_METAL=on"
[[ "$CMAKE_OSX_ARCHITECTURES" = "x86_64" ]] && export CMAKE_ARGS="-DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DLLAMA_METAL=on"
[[ "$CMAKE_OSX_ARCHITECTURES" = "x86_64" ]] && export CMAKE_ARGS="-DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_FMA=off -DLLAMA_F16C=off -DLLAMA_METAL=on" && export ARCHFLAGS="-arch x86_64"
[[ "$CMAKE_OSX_ARCHITECTURES" = "arm64" ]] && export ARCHFLAGS="-arch arm64"
CMAKE_ARGS="-DLLAMA_METAL=on" VERBOSE=1 python -m build --wheel
- name: Upload files to a GitHub release
Expand Down

0 comments on commit 0b12e58

Please sign in to comment.