Skip to content

Experiment with incremental builds #14870

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

Closed
jdm opened this issue Jan 5, 2017 · 6 comments
Closed

Experiment with incremental builds #14870

jdm opened this issue Jan 5, 2017 · 6 comments
Labels
A-build Related to or part of the build process I-papercut Small but painful.

Comments

@jdm
Copy link
Member

jdm commented Jan 5, 2017

<nmatsakis> 	pcwalton: I won't get to that testing just now, but you can basically do `mkdir ~/incr; RUSTFLAGS=-Zincremental=$HOME/incr` and give it a spin. At some point there was an ICE with the script crate but that has been fixed, still a rustup may be needed :/
@jdm jdm added I-papercut Small but painful. A-build Related to or part of the build process labels Jan 5, 2017
@jdm
Copy link
Member Author

jdm commented Jan 24, 2017

rust-lang/rust#39208

@SimonSapin
Copy link
Member

Apparently we can now use CARGO_INCREMENTAL=1, and Cargo will take care of managing the cache directory somewhere in target/.

@jdm
Copy link
Member Author

jdm commented Feb 4, 2017

@SimonSapin
Copy link
Member

I’m waiting for the next nightly to try that last fix (rust-lang/rust#39424).

@SimonSapin
Copy link
Member

Well, I didn’t wait. With Rust master, incremental compilation cuts build times after touch components/style/lib.rs by ~30% compared to -C codegen-units=4. Note though that this is the ideal case for incremental compilation since nothing other than a source file timestamp changes. The time for a real rebuild (with few but non-zero changes) would be somewhere in-between.

As a first step, let’s add it opt-in: #15390

@nox
Copy link
Contributor

nox commented Oct 7, 2017

Experimenting was done, given we even have a flag to use it in mach now.

@nox nox closed this as completed Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build Related to or part of the build process I-papercut Small but painful.
Projects
None yet
Development

No branches or pull requests

3 participants