-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustc fails if passed -g -g
; make check
breaks under --enable-debug.
#24937
Comments
(This looks easy to fix. It probably was a consequence of adding |
(there is also a IMO reasonable argument that the better fix here would be to make it so that |
I think I was probably the author of said patch :( Anyway, looks like there's a natural place to strip I'll open that PR in a few hours if you don't beat me to it. |
I'm about to take care of it. :) Update: anyway, no worries about the misstep; after all, I'm the one who r-plus'ed it. |
Fixes for -g handling First: * decouples our handling of `-g` for the test suite from our handling of `-g` for the rest of the compiler/stdlib building. * Namely, if you do `--enable-debug` or `--enable-debuginfo`, that should only affect `rustc` and the standard library crates; the tests should all continue to compile without `-g` unless: * you pass `--enable-debuginfo-tests`, or * the test itself requests the `-g` option (e.g. via a `// compile-flags: -g` embedded comment). Second: * Makes `rustc` more flexible in that it now accepts multiple occurrences of `-g -g` * (as a drive-by, I gave `-O` the same treatment: multiple occurrences of `-O` are treated as synonymous as a single occurrence of `-O`. Fix rust-lang#24937
rustc fails if passed
-g -g
:make check breaks:
The text was updated successfully, but these errors were encountered: