Skip to content

Commit

Permalink
updates readme with wasmpack instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir committed Dec 18, 2024
1 parent 40a2a30 commit 12d18f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ironfish-rust-wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ wasm-pack build --target web --release

## Building on Mac

### Using `wasm-pack`

```bash
AR=/opt/homebrew/opt/llvm/bin/llvm-ar CC=/opt/homebrew/opt/llvm/bin/clang wasm-pack build --release --target web
```

### Using `cargo` and `wasm-bindgen`

In case building with `wasm-pack` fails, you can try building with `cargo` and `wasm-bindgen`:

```bash
AR=/opt/homebrew/opt/llvm/bin/llvm-ar CC=/opt/homebrew/opt/llvm/bin/clang cargo build --release --target wasm32-unknown-unknown
```
Expand Down

0 comments on commit 12d18f5

Please sign in to comment.