-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
How to configure compilation flags? #395
Comments
So the coverage related options are mainly just linker ones, although I do set
|
It shows a lot, but not the compilation flags. This works however:
The first thing I notice is that
|
I'm surprised that I don't see |
So tarpaulin was created before the There's been some other improvements in the code to find instructions to instrument so I'll remove the opt-level flag as that was largely a pessimistic attempt to give more surface area to attach to, and then test on a few larger projects to make sure it doesn't affect the accuracy of the results. I'll also all some debug printouts to show the flags cargo is ran with as well. |
There's something pushed to develop if you want to try it out |
so the opt-level overriding is removed in the latest version and verbosity of cargo is now increased for --debug. I've also got a new released version with these changes so let me know if this solves your issues 👍 |
Since tarpaulin no longer overrides the opt-level and I haven't heard anything else I'm just going to close this. Let me know if you have any other issues |
I'm struggling to see which compilation flags tarpaulin applies to build dependencies and tests.
In my mid-sized project I have the following in the workspace
Cargo.toml
:By default, cargo in
test
ordev
profile will not optimize dependencies (in both cases they are build using thedev
profile). One of my dependencies is a mathy computational library that absolutely needsopt-level > 0
to have any performance. Without it, the tests run about 90x slower.I also don't care about coverage in dependencies, so if possible, I'd like the coverage related flags like to be disabled there.
Related issue: With
cargo
I can runcargo -vvv
and see exactly which rust flags are applied to each crate. Unfortunately, non of tarpaulin's options seem to give me this insight. I don't even know if it usescargo
under the hood.This may be related to #340
The text was updated successfully, but these errors were encountered: