-
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
--enable-debug seems to imply --disable-optimize #24840
Comments
Oh you can explain it in different ways, see #24405 |
|
I’m building 0d8309e 2015-04-25. I believe #24416 (which I had found) is not related but #24405 kind of is. I can try |
@SimonSapin i think this may be "by design", according to discussion on #24205 and #17665. Although then again it is not clear that there was consensus on #17665 that The intention, as I understand it, is that if you do The problem with this reasoning is that bootstrapping (At this point I essentially always call Anyway, I would not object if we went back and again decoupled the (The argument for why |
I can imagine the logic behind this, but in practice this is far from ideal. It’s only one data point, but here is how my thought process and experience went:
|
Reopening: while documentation helps, I still think we should address the root problem here. See: https://internals.rust-lang.org/t/why-is-enable-debug-implying-disable-optimize-for-rustc/1978 (And maybe I'll just put up a PR changing the configure script to make it stop doing this.) |
I agree with @pnkfelix and @SimonSapin that in practice you do not want to disable optimizations, and we should not do so without an explicit |
This still seems to be the case, but hasn't been motivation to fix. |
This bothers me every time someone accidentally does it, but I didn't even know this issue was open. |
I still think we ought to change it. =) |
Maybe we can force people to choose between Like, when Edit: I forgot we already switched to rustbuild, but you get what I mean |
@bombless I'm still waiting for someone to come up with an usecase for an unoptimized compiler. |
@eddyb I thought you are the one who may find some clues. |
@bombless in theory yes, in practice I've yet to have such a bug (well, I did have one once, actually, but I didn't find it by turning off optimizations); in general an unopt compiler is just too slow to use. |
Isn't this fixed by config.toml? that is, these are all separate options now. |
@steveklabnik |
@steveklabnik also, regardless of the existence of Lines 527 to 528 in c97b60f
Lines 629 to 633 in c97b60f
note in particular that bit about how the My proposal is that we stop having the default |
Note also that the doc comment for Lines 253 to 257 in c97b60f
|
…g` setting in `Cargo.toml`.
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis During rustc bootstrap, make default for `optimize` independent of `debug` It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment)) Fix rust-lang#24840
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis During rustc bootstrap, make default for `optimize` independent of `debug` It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment)) Fix rust-lang#24840
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis During rustc bootstrap, make default for `optimize` independent of `debug` It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment)) Fix rust-lang#24840
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis During rustc bootstrap, make default for `optimize` independent of `debug` It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment)) Fix rust-lang#24840
I build rustc from source with
--enable-debug
to get output fromRUST_LOG
to chase down an ICE, and the resulting compiler is about 25 times slower than Nigthly on the same commit. (Servo’s script crate takes ~50 minutes instead of ~2 to trigger the same ICE, #24687.)@huonw said on IRC:
… which would explain the slowdown, but I didn’t find an issue filed for it, so here it is.
This may be a Makefile issue: #8058.
The text was updated successfully, but these errors were encountered: