File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,6 +230,10 @@ jobs:
230230 shell : bash
231231 run : |
232232 set -eux
233+ if [ "${{ matrix.platform }}" = "macos-latest" ]; then
234+ brew install llvm
235+ echo "CC=$(brew --prefix llvm)/bin/clang" >> "$GITHUB_ENV"
236+ fi
233237 rustup target add wasm32-unknown-unknown
234238 cargo install wasm-bindgen-cli --version 0.2.126 --locked
235239
Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ const env = { ...process.env }
7575const cc = resolveCc ( env )
7676if ( cc ) {
7777 env . CC = cc
78+ } else if ( process . platform === 'darwin' ) {
79+ console . error (
80+ 'build-wasm-bridge: macOS needs LLVM clang for wasm32 (Apple clang cannot target wasm32-unknown-unknown). Install with: brew install llvm'
81+ )
82+ process . exit ( 1 )
7883}
7984
8085const wasmBridgeDir = path . join ( root , 'wasm-bridge' )
You can’t perform that action at this time.
0 commit comments