Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up--enable-debug seems to imply --disable-optimize #24840
Comments
SimonSapin
referenced this issue
Apr 26, 2015
Closed
ICE in codemap::CodeMap::bytepos_to_file_charpos #24687
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Oh you can explain it in different ways, see #24405 |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
@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 |
This comment has been minimized.
This comment has been minimized.
|
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:
|
bombless
referenced this issue
Apr 28, 2015
Merged
Mention --enable-optimize for --enable-debug #24902
bors
added a commit
that referenced
this issue
Apr 30, 2015
steveklabnik
added
the
A-frontend
label
Apr 30, 2015
bors
closed this
in
#24902
Apr 30, 2015
pnkfelix
reopened this
Apr 30, 2015
This comment has been minimized.
This comment has been minimized.
|
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.) |
This comment has been minimized.
This comment has been minimized.
|
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 |
frewsxcv
referenced this issue
Jan 21, 2016
Closed
`--enable-debuginfo` does not enable LLVM debug info #31033
brson
added
the
A-build
label
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
This still seems to be the case, but hasn't been motivation to fix. |
brson
added
P-low
T-tools
labels
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
This bothers me every time someone accidentally does it, but I didn't even know this issue was open. |
This comment has been minimized.
This comment has been minimized.
|
I still think we ought to change it. =) |
This comment has been minimized.
This comment has been minimized.
|
Maybe we can force people to choose between Like, when Edit: I forgot we already switched to rustbuild, but you get what I mean |
This comment has been minimized.
This comment has been minimized.
|
@bombless I'm still waiting for someone to come up with an usecase for an unoptimized compiler. |
This comment has been minimized.
This comment has been minimized.
|
@eddyb I thought you are the one who may find some clues. |
This comment has been minimized.
This comment has been minimized.
|
@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. |
This comment has been minimized.
This comment has been minimized.
|
Isn't this fixed by config.toml? that is, these are all separate options now. |
This comment has been minimized.
This comment has been minimized.
|
@steveklabnik |
Mark-Simulacrum
added
T-dev-tools
and removed
T-tools
labels
May 24, 2017
Mark-Simulacrum
added
the
C-feature-request
label
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
@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 |
This comment has been minimized.
This comment has been minimized.
|
Note also that the doc comment for Lines 253 to 257 in c97b60f |
SimonSapin commentedApr 26, 2015
I build rustc from source with
--enable-debugto get output fromRUST_LOGto 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.