You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple's Clang doesn't support the wasm32-unknown-unknown target,
causing secp256k1-sys compilation to fail on Mac. This change
automatically detects Mac and uses Homebrew's LLVM which has
proper WASM support.
Changes:
- Makefile: Auto-detect Mac and set CC/AR to use Homebrew LLVM
- Makefile: Remove trailing slashes from target declarations for
compatibility with both old (Mac 3.81) and new (Linux 4.x) Make
- package.json: Fix Make target names to match Makefile
- scripts/wasm-pack-test.sh: Wrapper script to set correct compiler
for wasm-pack tests on Mac
- README.md: Update build instructions for Mac
This allows Mac users to build with 'npm run build' without Docker,
while maintaining full compatibility with Linux CI builds.
Tested on Mac (Apple Silicon)
Requires: brew install llvm"
Ticket: BTC-0
0 commit comments