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

configure: Don't disable optimizations when enabling debug #24408

Merged
merged 3 commits into from
Apr 14, 2015

Conversation

richo
Copy link
Contributor

@richo richo commented Apr 14, 2015

Optimization is now on by default. Closes #24405

@rust-highfive
Copy link
Collaborator

r? @brson

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

@richo
Copy link
Contributor Author

richo commented Apr 14, 2015

r? @pnkfelix

@rust-highfive rust-highfive assigned pnkfelix and unassigned brson Apr 14, 2015
@pnkfelix
Copy link
Member

@richo my goal was to preserve the spirit of the original change, under which --enable-debug on its own would indeed disable optimizations, and only change the behavior when one passes both --enable-debug and --enable-optimize.

(However. perhaps this is misguided, and we should simply just do what you suggest here.)

@richo
Copy link
Contributor Author

richo commented Apr 14, 2015

Ah. I pondered that for a while, and wound up concluding that optimizations are now the default state. That seems reasonable to me though, will update the patch.

@pnkfelix
Copy link
Member

@richo well, TBH now I am torn too. I'm going to go ask for opinions in #rust-internals.

richo added 2 commits April 14, 2015 00:58
This allows you to distinguish between an option that defaulted, and an
option selected by the user
@pnkfelix
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Apr 14, 2015

📌 Commit fd69ac1 has been approved by pnkfelix

@pnkfelix
Copy link
Member

@bors p=5

bors added a commit that referenced this pull request Apr 14, 2015
@bors
Copy link
Contributor

bors commented Apr 14, 2015

⌛ Testing commit fd69ac1 with merge a9d8065...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

configure --enable-debug --enable-optimize is not enabling optimizations
5 participants