Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion lib/vector-vrl/web-playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,18 @@ with this [issue filter][vrl-wasm-unsupported-filter].

### macOS Troubleshooting

If you are getting compilation errors on macOS here are some things to check:
On macOS the `zstd-sys` dependency (pulled in by VRL's stdlib) must compile C
code for WebAssembly, but the system Apple `clang` has no WebAssembly backend.
Point the build at a clang that has one, for example LLVM from Homebrew
(`brew install llvm`):

```shell
CC_wasm32_unknown_unknown="$(brew --prefix llvm)/bin/clang" \
AR_wasm32_unknown_unknown="$(brew --prefix llvm)/bin/llvm-ar" \
wasm-pack build --target web --out-dir public/pkg
```
Comment thread
thomasqueirozb marked this conversation as resolved.
Outdated

If you are getting other compilation errors on macOS here are some things to check:

```shell
xcode-select -p
Expand Down
1 change: 1 addition & 0 deletions lib/vector-vrl/web-playground/public/LICENSE
Loading