Skip to content

Instantly share code, notes, and snippets.

@0xch4z
Created November 4, 2023 18:16
Show Gist options
  • Save 0xch4z/e6cd2c087bb7e0b86d5b839843b746f0 to your computer and use it in GitHub Desktop.
Save 0xch4z/e6cd2c087bb7e0b86d5b839843b746f0 to your computer and use it in GitHub Desktop.
Building zig from source on macOS arm64
git clone [email protected]:ziglang/zig.git
cd zig

mkdir build
cd build
cmake .. -DZIG_STATIC_LLVM=ON -DCMAKE_PREFIX_PATH="$(brew --prefix llvm);$(brew --prefix zstd)"
make -j9 install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment