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

Fully optimize by default #24205

Closed
wants to merge 12 commits into from
Closed

Fully optimize by default #24205

wants to merge 12 commits into from

Conversation

brson
Copy link
Contributor

@brson brson commented Apr 8, 2015

This makes the default configuration fully optimized, with no debugging options, no llvm asserts, renames --enable-debug to --enable-debug-assertions, and adds --enable-debug as a blanket option that toggles various things, per #17665. It does not add a --enable-release flag since that would be a no-op.

cc @nrc

Fixes #22390
Fixes #17081
Partially addresses #17665

@rust-highfive
Copy link
Collaborator

r? @huonw

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

@nrc
Copy link
Member

nrc commented Apr 8, 2015

Could we build jemalloc with --enable-debug and --enable-fill in the debug configuration? Otherwise, looks good!

@brson
Copy link
Contributor Author

brson commented Apr 8, 2015

@nrc done

@alexcrichton
Copy link
Member

@bors: r+ 6d17c35

@brson
Copy link
Contributor Author

brson commented Apr 8, 2015

For some reason when I build with --enable-debug, llvm-mc doesn't get built.

libLTO fails to link here.
@brson
Copy link
Contributor Author

brson commented Apr 9, 2015

I pushed a follow up that changes --enable-debug to not set --disable-optimize-llvm since I cannot get LLVM to build (libLTO linking fails) in that config.

@brson
Copy link
Contributor Author

brson commented Apr 9, 2015

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Apr 9, 2015

📌 Commit a725426 has been approved by alexcrichton

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 9, 2015
 This makes the default configuration fully optimized, with no debugging options, no llvm asserts, renames --enable-debug to --enable-debug-assertions, and adds --enable-debug as a blanket option that toggles various things, per rust-lang#17665. It does not add a `--enable-release` flag since that would be a no-op.

cc @nrc

Fixes rust-lang#22390
Fixes rust-lang#17081
Partially addresses rust-lang#17665
@nagisa
Copy link
Member

nagisa commented Apr 9, 2015

I still disagree with disabling LLVM asserts in nightlies.

@brson
Copy link
Contributor Author

brson commented Apr 9, 2015

@nagisa Oh, I did mean to leave llvm asserts on for nightlies. I'll update it.

@brson
Copy link
Contributor Author

brson commented Apr 9, 2015

@bors a=alexcrichton

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 9, 2015
 This makes the default configuration fully optimized, with no debugging options, no llvm asserts, renames --enable-debug to --enable-debug-assertions, and adds --enable-debug as a blanket option that toggles various things, per rust-lang#17665. It does not add a `--enable-release` flag since that would be a no-op.

cc @nrc

Fixes rust-lang#22390
Fixes rust-lang#17081
Partially addresses rust-lang#17665
@nagisa
Copy link
Member

nagisa commented Apr 9, 2015

@brson yay!

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Apr 9, 2015

📌 Commit 0e0c841 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Apr 9, 2015

⌛ Testing commit 0e0c841 with merge 6b95d8b...

bors added a commit that referenced this pull request Apr 9, 2015
This makes the default configuration fully optimized, with no debugging options, no llvm asserts, renames --enable-debug to --enable-debug-assertions, and adds --enable-debug as a blanket option that toggles various things, per #17665. It does not add a `--enable-release` flag since that would be a no-op.

cc @nrc

Fixes #22390
Fixes #17081
Partially addresses #17665
@alexcrichton
Copy link
Member

This... was merged? Not sure what github is doing... Closing!

@pnkfelix
Copy link
Member

Ah ha! I bet this is why my make rustc-stage1 lately have been taking 40 minutes or more!

Filed #24405

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
8 participants