Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Build #32

Open
kungfuflex opened this issue Dec 12, 2024 · 3 comments
Open

OSX Build #32

kungfuflex opened this issue Dec 12, 2024 · 3 comments

Comments

@kungfuflex
Copy link
Owner

When building as a dependency on Mac OSX it is necessary to install llvm with brew then invoke the build with environment variables to target the Homebrew LLVM toolchain.

brew install llvm
cargo clean
AR=/opt/homebrew/opt/llvm/bin/llvm-ar CC=/opt/homebrew/opt/llvm/bin/clang cargo build --release --target wasm32-unknown-unknown

Is there a way to build this into the crate build.rs ?

@kungfuflex
Copy link
Owner Author

rust-bitcoin/rust-secp256k1#283

@ericbutz
Copy link

For my mac build, in addition to the above from @kungfuflex , this path change was also required:

On macOS, the Homebrew version of clang should be used instead of the Xcode one. This can be achieved with:

export PATH=/usr/local/opt/llvm/bin:$PATH

found in: gyscos/zstd-rs#93

@0xcasuwu
Copy link
Collaborator

@ericbutz this unbricked me ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants