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

incremental = true as the default in config.toml? #65060

Closed
anp opened this issue Oct 3, 2019 · 6 comments
Closed

incremental = true as the default in config.toml? #65060

anp opened this issue Oct 3, 2019 · 6 comments
Labels
A-incr-comp Area: Incremental compilation C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@anp
Copy link
Member

anp commented Oct 3, 2019

I'm curious whether it would make sense for incremental = true to be the default for rustbuild in the absence of another setting.

Per @eddyb on IRC:

07:53 <eddyb> it used to be bad for a bit until a few months ago (that is, it would produce a very slow compiler) but nowadays we should just turn it on by default lol
07:53 <eddyb> (feel free to open an issue about it)
07:53 <eddyb> it would need to not be turned on for {stable,beta,nightly} builds (as opposed to regular dev builds), but idk how that's handled (I assume it's still possible to make that distinction)

Searching around for incremental-related compiler perf issues it does seem to me that most of them are closed.

@eddyb
Copy link
Member

eddyb commented Oct 3, 2019

cc @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

We can definitely make incremental the default and just switch it off on any build configured with a non-dev channel. I think that's all CI, not sure, can confirm.

@jonas-schievink jonas-schievink added A-incr-comp Area: Incremental compilation T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-enhancement Category: An issue proposing an enhancement or a PR with one. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Oct 3, 2019
@jyn514
Copy link
Member

jyn514 commented Sep 13, 2020

I tried adding this in #76417 and it was closed for various reasons:

  • It sometimes breaks.
  • It takes about 5GB of extra disk space, which might be too much for some people.
  • It often causes 32-bit builds on Windows to fail because rustc needs more memory with incemental objects.

With those in mind does this still make sense to change? If not, I think this should be closed.

@pierwill
Copy link
Member

pierwill commented Oct 28, 2021

incremental = true is suggested in the dev guide. It might make sense to call this out more prominently there. @jyn514 it does feel like this can be closed. :)

@pierwill
Copy link
Member

That being said, there does appear to be popular demand for incremental by default. 😇

@jyn514
Copy link
Member

jyn514 commented May 20, 2023

Since #77004, this is enabled by default for the compiler and library profiles.

@jyn514 jyn514 closed this as completed May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

7 participants
@eddyb @jonas-schievink @Mark-Simulacrum @anp @pierwill @jyn514 and others