Skip to content
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

Mention --enable-optimize for --enable-debug #24902

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Conversation

bombless
Copy link
Contributor

Closes #24840

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@bombless bombless changed the title Mention --enable-optimized for --enable-debug Mention --enable-optimize for --enable-debug Apr 28, 2015
@pnkfelix
Copy link
Member

Update: Moved content/rant to https://internals.rust-lang.org/t/why-is-enable-debug-implying-disable-optimize-for-rustc/1978

Sorry for the attempted hijack of the comment thread.

@pnkfelix
Copy link
Member

(Arguably I really should not be using github comments for this argument and hijacking a well-meaning pull request like this, which is certainly an improvement over the status quo. I'll copy the above comment to an internals post instead.)

@@ -544,7 +544,7 @@ fi
BOOL_OPTIONS=""
VAL_OPTIONS=""

opt debug 0 "debug mode"
opt debug 0 "debug mode; you may also want extra --enable-optimize for this as it disable optimization by default"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, grammatical typo: "as it disable optimization by default" is not correct. perhaps you meant "... it disables ..." ?

Second: Its pretty long; it gets out to column 114 in my editor, and so it will pretty long in the users terminal. I'm not sure if we have other help text for configure that is so long on one line.

Third: the word "it" in the output is slightly ambiguous; a naive user might think that the word "it" there refers to the --enable-optimize option. (Yes, i know that would be a silly interpretation.)

Maybe better text would be just:

"debug mode; disables optimization unless `--enable-optimize` given"

@bombless
Copy link
Contributor Author

@pnkfelix , thanks for your patience :)

@pnkfelix
Copy link
Member

@bors r+ 98b7aaf rollup

@bors
Copy link
Contributor

bors commented Apr 30, 2015

⌛ Testing commit 98b7aaf with merge 2f613bf...

bors added a commit that referenced this pull request Apr 30, 2015
@bors bors merged commit 98b7aaf into rust-lang:master Apr 30, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--enable-debug seems to imply --disable-optimize
5 participants