-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Analyzing --release
profile of binaries
#5
Comments
--release
profile of binaries
There is a flag But I guess what you're after is not necessarily analysing optimised code, but analysing code with debug_assertions turned off. You could probably add something like this to your [profile.cackle-release]
inherits = "release"
opt-level = 0 I'd be interested to hear how you go with this. |
thanks, will try it out! and yes makes sense that would be harder to analyze a fully optimized binary, and the main (and only, I think) way to detect |
can confirm this works, so that's good! is there a way to streamline and not having to specify
or maybe make it possible to override the default |
I added |
thanks that works well! |
Is there an option to analyze the builds from
--release
mode instead of the ordinary debug mode? typically they are the same but can and are differences between them and generally is the--release
binaries that are used for users, and that have highest security importance.Could see it being of interest to analyze multiple profiles, just to be safe, and to cover potential custom Cargo profiles also.
Example
One concrete "issue" I ran into that motivated this was with @nical's
lyon_tessellation
crate that in debug-only reads an environment variable and as such usesenv
capability/API:https://github.com/nical/lyon/blob/529a166dbccd1560b1c8e30387508f332e662609/crates/tessellation/src/fill.rs#L549
I could ofc all the
env
capability to the this crate in our config, but as this is only for debug builds and not our--release
builds I would like to avoid that.The text was updated successfully, but these errors were encountered: