This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 5097f2c312 docs: update wasmtest README with instructions for Apple
silicon (#17755)
5097f2c312 is described below
commit 5097f2c3129dd0a903d3e6680d81cfd5d71acd19
Author: Jeffrey Vo <[email protected]>
AuthorDate: Sat Sep 27 10:45:10 2025 +1000
docs: update wasmtest README with instructions for Apple silicon (#17755)
---
datafusion/wasmtest/README.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/datafusion/wasmtest/README.md b/datafusion/wasmtest/README.md
index a6437b4cb1..57a12ef8b8 100644
--- a/datafusion/wasmtest/README.md
+++ b/datafusion/wasmtest/README.md
@@ -40,6 +40,20 @@ Then use wasm-pack to compile the crate from within this
directory
wasm-pack build
```
+### Apple silicon
+
+The default installation of Clang on Apple silicon does not support wasm, so
you'll need to install LLVM Clang. For example via Homebrew:
+
+```sh
+brew install llvm
+# You will also need to install wasm-bindgen-cli separately, changing version
as needed (0.3.53 = 0.2.103)
+cargo install [email protected]
+# Need to run commands like so, unless you edit your PATH to prepend the LLVM
version of Clang
+PATH="/opt/homebrew/opt/llvm/bin:$PATH" RUSTFLAGS='--cfg
getrandom_backend="wasm_js"' wasm-pack build
+```
+
+- For reference: https://github.com/briansmith/ring/issues/1824
+
## Try it out
The `datafusion-wasm-app` directory contains a simple app (created with
[`create-wasm-app`](https://github.com/rustwasm/create-wasm-app) and then
manually updated to WebPack 5) that invokes DataFusion and writes results to
the browser console.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]