-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot fuzz if profile.release.lto = true
#384
Comments
I'd be happy to review PRs for both of these things. |
Enabling LTO results in link errors, see rust-fuzz#384 for more info.
A quick workaround for those like me stumbling here while troubleshooting:
(For me, the symptom was |
With:
in my workspace
Cargo.toml
runningcargo fuzz run «target»
fails to link with:(there are dozens of these).
Commenting out
lto = true
results in a successful link and run.If this isn't an easy fix perhaps
cargo fuzz
could pass--config profile.release.lto=false
tocargo
? Alternatively being able to choose a custom profile (not justrelease
vsdev
) might be a useful feature in its own right.Reproduced with
and
The text was updated successfully, but these errors were encountered: