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

feat: allow for compilation on aarch64 #1204

Merged
merged 2 commits into from
Jul 23, 2020
Merged

feat: allow for compilation on aarch64 #1204

merged 2 commits into from
Jul 23, 2020

Conversation

dignifiedquire
Copy link
Contributor

@dignifiedquire dignifiedquire commented Jul 7, 2020

@dignifiedquire dignifiedquire changed the title [WIP] feat: allow for compilation on aarch64 feat: allow for compilation on aarch64 Jul 7, 2020
@porcuquine porcuquine mentioned this pull request Jul 7, 2020
2 tasks
@@ -109,6 +110,33 @@ impl SystemMetadata {
memory_total_bytes: memory.total().get::<uom::si::information::byte>(),
})
}

#[cfg(not(target_arch = "x86_64"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

I personally prefer keeping the cfg() differences as small as possible. We could create a methos that returns the host, memory and the cpu_logical/physical that is shared between the new()s. This would also make it more apparent what the difference between the cfgs is. Though it''s a matter of test, hence just a comment and nothing that needs to change/blocking a merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree this could be nicer, but I mostly wanted to get this to compile

Copy link
Collaborator

Choose a reason for hiding this comment

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

more fixes

sha2raw: update deps and enable asm by default

patch ff

fix compile time imports

missing import

move prefetch into macro

fixup fil-proofs-tooling

refactoring

refactoring
@@ -25,7 +25,7 @@ chrono = { version = "0.4.7", features = ["serde"] }
memmap = "0.7.0"
bellperson = "0.9.1"
paired = "0.20.0"
fil-sapling-crypto = "0.6.0"
fil-sapling-crypto = "0.6.3"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rust oddity, these individual patch version updates can be omitted. They don't hurt though ;-)

@keyvank keyvank merged commit 8910194 into master Jul 23, 2020
@porcuquine porcuquine deleted the feat/aarch64 branch August 12, 2020 18:48
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.

5 participants