Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

fix building on non x864_64 archs #7

Merged
merged 2 commits into from
Jul 23, 2020
Merged

fix building on non x864_64 archs #7

merged 2 commits into from
Jul 23, 2020

Conversation

dignifiedquire
Copy link

No description provided.

fn main() {
let target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap();

if target_arch == "x86_64" {
Copy link

Choose a reason for hiding this comment

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

That if is no longer needed, due to the config flag.

Copy link
Author

Choose a reason for hiding this comment

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

this is still needed for cross compiling

Copy link

@vmx vmx Jul 10, 2020

Choose a reason for hiding this comment

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

target_arch arch is not set correctly when cross compiling? it is answered here: filecoin-project/sapling-crypto#18 (comment), it is not set correctly.

@cryptonemo cryptonemo merged commit 5fd551e into master Jul 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants