-
Notifications
You must be signed in to change notification settings - Fork 330
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: new include_elf!
macro for importing ELF
#1620
feat: new include_elf!
macro for importing ELF
#1620
Conversation
SP1 Performance Test Results Branch: jon/gro-155-use-elf-from-target-instead-of-copying
|
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.
Can we add an example for this to make sure that it works? (Or modify an existing example)?
Sure I can make all existing examples use this new syntax. |
.find(|p| &p.id == program_crate) | ||
.ok_or_else(|| anyhow::anyhow!("cannot find package for {}", program_crate))?; | ||
|
||
for bin_target in program.targets.iter().filter(|t| { |
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.
So we ignore --bin
targets?
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.
Nope. Exactly the opposite. We only care about bin
targets.
In terms of the --bin
flag, this is currently arlready supported as an option before this PR. When that flag is used it only builds one target specified by it. So what's done here is just to preserve that behavior.
dc566a3
to
016b8d1
Compare
Adds a new mechanism of importing ELF files without breaking the existing ELF-copying behaviour. Note that this backward-compatibility is preserved only when building a single target, which is fine as building multiple binary targets doesn't even work at the moment in the first place.
A follow-up PR should add an option to turn off the ELF-copying behaviour.