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

doc: refresh build instructions #5077

Merged
merged 2 commits into from
Oct 25, 2021
Merged

doc: refresh build instructions #5077

merged 2 commits into from
Oct 25, 2021

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Oct 25, 2021

Notably, explain how to compile nearcore on M1

closes #3803

Notably, explain how to compile nearcore on M1

closes #3803
* At the moment, `nearcore` only supports compiling for x86_64 architecture
(for technical reasons, we have to care about CPU architecture, and supporting one is easier).
To compile to x86_64 on Apple silicon, use `rustup set default-host x86_64-apple-darwin` command.
That is, cross-compilation sadly doesn't work at the time of writing, although the fix is in the pipeline.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix alluded to: wasmerio/wasmer#2635. Once that tickles down to the wasmer we use, just cargo build --target x86_64-apple-darwin should work.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Co-authored-by: Bowen Wang <bowenwang1996@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Incompatible with Macs based on the Apple M1 chip
2 participants