-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Diagnose use sanitizers with crt-static #85559
Conversation
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
I am not able to review any PRs in the near future. r? @nagisa |
@@ -1512,6 +1512,17 @@ fn validate_commandline_args_with_session_available(sess: &Session) { | |||
if let (Some(first), Some(second)) = (sanitizer_iter.next(), sanitizer_iter.next()) { | |||
sess.err(&format!("`-Zsanitizer={}` is incompatible with `-Zsanitizer={}`", first, second)); | |||
} | |||
|
|||
// Cannot enable crt-static with sanitizers on Linux | |||
for sanitizer in sess.opts.debugging_opts.sanitizer.into_iter() { |
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.
Instead of emitting an error message for each of the enabled sanitizers, could we emit a single message that covered all of the enabled sanitizers in a single diagnostic?
80b6083
to
4376484
Compare
@bors r+ |
📌 Commit 4376484 has been approved by |
☀️ Test successful - checks-actions |
Fix: #85459