diff options
author | 2021-10-30 17:24:53 -0700 | |
---|---|---|
committer | 2021-10-30 17:24:53 -0700 | |
commit | b5b47e652565f21c2e25a910b52e6e518b63f623 (patch) | |
tree | 1504e4bb47db3e282e4829ae92d79bd727427a81 | |
parent | e7a4f9f507d172fe1314c6d32b521a8e5a69759b (diff) | |
download | bun-b5b47e652565f21c2e25a910b52e6e518b63f623.tar.gz bun-b5b47e652565f21c2e25a910b52e6e518b63f623.tar.zst bun-b5b47e652565f21c2e25a910b52e6e518b63f623.zip |
Update README.md
-rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -912,13 +912,25 @@ Estimated: 30-90 minutes :( ## macOS +Install LLVM 12 and homebrew dependencies: + +```bash +brew install llvm@12 coreutils libtool cmake libiconv automake openssl@1.1 +``` + +You will also need esbuild (used for bundling internal library code until Bun has better support for bundling libraries): + +```bash +npm install -g esbuild +``` + Compile Zig: ```bash git clone https://github.com/jarred-sumner/zig cd zig git checkout jarred/zig-sloppy-with-small-structs -cmake . -DCMAKE_PREFIX_PATH=$(brew --prefix llvm) -DZIG_STATIC_LLVM=ON -DCMAKE_BUILD_TYPE=Release && make -j 16 +cmake . -DCMAKE_PREFIX_PATH=$(brew --prefix llvm@12) -DZIG_STATIC_LLVM=ON -DCMAKE_BUILD_TYPE=Release && make -j 16 ``` You'll want to make sure `zig` is in `$PATH`. The `zig` binary wil be in the same folder as the newly-cloned `zig` repo. If you use fish, you can run `fish_add_path (pwd)`. |