Skip to content

Commit e6f080c

Browse files
docs(vrl playground): document macOS wasm build workaround (#26550)
1 parent afbde80 commit e6f080c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎lib/vector-vrl/web-playground/README.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,17 @@ with this [issue filter][vrl-wasm-unsupported-filter].
7272

7373
### macOS Troubleshooting
7474

75-
If you are getting compilation errors on macOS here are some things to check:
75+
If compilation fails because the selected C compiler does not support the
76+
`wasm32-unknown-unknown` target, try a compiler with WebAssembly support, such
77+
as Homebrew LLVM. The following command explicitly selects that toolchain.
78+
79+
```shell
80+
CC_wasm32_unknown_unknown="$(brew --prefix llvm)/bin/clang" \
81+
AR_wasm32_unknown_unknown="$(brew --prefix llvm)/bin/llvm-ar" \
82+
wasm-pack build --target web --out-dir public/pkg
83+
```
84+
85+
If you are getting other compilation errors on macOS here are some things to check:
7686

7787
```shell
7888
xcode-select -p
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../LICENSE

0 commit comments

Comments
 (0)