-
Notifications
You must be signed in to change notification settings - Fork 150
Add bpf target to hashers #396
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
Conversation
a8a72eb to
d0724f6
Compare
|
Waiting on #408 to rebase. |
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just the one comment
sha256-hasher/src/lib.rs
Outdated
| pub use { | ||
| core::mem::MaybeUninit, solana_define_syscall::definitions::sol_sha256, solana_hash::HASH_BYTES, | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be pub use, right?
| pub use { | |
| core::mem::MaybeUninit, solana_define_syscall::definitions::sol_sha256, solana_hash::HASH_BYTES, | |
| }; | |
| use { | |
| core::mem::MaybeUninit, solana_define_syscall::definitions::sol_sha256, solana_hash::HASH_BYTES, | |
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. We still need to re-export the sol_sha256 syscall – solana-program references it.
66128b2 to
a82aedf
Compare
|
@joncinque Rebased and expanded the PR to include all hasher crates. |
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Problem
The upstream compiler uses
target_arch = "bpf"when compiling tobpfel-unknown-nonetarget, while thecfgconditional compilation is currently using onlytarget_os = "solana".Solution
Add
target_arch = "bpf"along sidetarget_os = "solana".Note: Needs #389 to go first.