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

fix: make builds on stable and aarch64 possible #1679

Merged
merged 3 commits into from
Mar 10, 2023
Merged

Conversation

vmx
Copy link
Contributor

@vmx vmx commented Mar 10, 2023

When using Rust nightly we are able to enable an optimization for aarch64.
With this change it's now possible to compile for aarch64 on stable rust,
while the optimization is still enabled when compiled with nightly.

A similar fix was made for bellperson at
filecoin-project/bellperson#269

This fix can be tested even on x86_64 on Linux with cross compiling
for aarch64:

cargo build --target aarch64-unknown-linux-gnu

Fixes #1652.

vmx added 2 commits March 10, 2023 14:37
When using Rust nightly we are able to enable an optimization for aarch64.
With this change it's now possible to compile for aarch64 on stable rust,
while the optimization is still enabled when compiled with nightly.

A similar fix was made for bellperson at
filecoin-project/bellperson#269

This fix can be tested even on x86_64 on Linux with cross compiling
for aarch64:

    cargo build --target aarch64-unknown-linux-gnu

Fixes #1652.
We no longer need to run nightly on CI.
@vmx
Copy link
Contributor Author

vmx commented Mar 10, 2023

I've verified locally that a different code path is used when compiling with stable Rust or nightly for aarch64.

Copy link
Contributor

@DrPeterVanNostrand DrPeterVanNostrand left a comment

Choose a reason for hiding this comment

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

Looks good to me, just one comment regarding documentation.

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.

Make it possible to build for aarch64 on stable Rust
3 participants