Skip to content

More intuitive CARGO_INCREMENTAL semantics#3689

Merged
bors merged 1 commit intorust-lang:masterfrom
ms705:master
Feb 14, 2017
Merged

More intuitive CARGO_INCREMENTAL semantics#3689
bors merged 1 commit intorust-lang:masterfrom
ms705:master

Conversation

@ms705
Copy link
Contributor

@ms705 ms705 commented Feb 13, 2017

Currently, the mere presence of a CARGO_INCREMENTAL variable in the environment causes incremental compilation to be enabled. This has the very counterintuitive effect that CARGO_INCREMENTAL=0 and even CARGO_INCREMENTAL= mean incremental compilation is on.

This PR brings the semantics in line with how they are defined in the tests (cf. tests/build.rs:45), and in public-facing documentation.

See also rust#39773 for an example of this causing confusion in the wild.

Previously, the mere presence of a CARGO_INCREMENTAL variable in the
environment caused incremental compilation to happen. This has the very
unintuitive effect that `CARGO_INCREMENTAL=0` and even
`CARGO_INCREMENTAL=` mean incremental compilation is *on*.

This change brings the semantics in line with how they are defined in
the tests (cf. tests/build.rs:45), and in public-facing documentation
(https://internals.rust-lang.org/t/incremental-compilation-beta/4721).
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@michaelwoerister
Copy link
Member

cc @nikomatsakis

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Feb 13, 2017

📌 Commit 74cb863 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 13, 2017

⌛ Testing commit 74cb863 with merge 020acef...

@bors
Copy link
Contributor

bors commented Feb 13, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

alexcrichton commented Feb 13, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 13, 2017

⌛ Testing commit 74cb863 with merge de2aa26...

bors added a commit that referenced this pull request Feb 13, 2017
More intuitive CARGO_INCREMENTAL semantics

Currently, the mere presence of a `CARGO_INCREMENTAL` variable in the environment causes incremental compilation to be enabled. This has the very counterintuitive effect that `CARGO_INCREMENTAL=0` and even `CARGO_INCREMENTAL=` mean incremental compilation is *on*.

This PR brings the semantics in line with how they are defined in the tests (cf. [tests/build.rs:45](https://github.com/rust-lang/cargo/blob/master/tests/build.rs#L45)), and in [public-facing documentation](https://internals.rust-lang.org/t/incremental-compilation-beta/4721).

See also [rust#39773](rust-lang/rust#39773) for an example of this causing confusion in the wild.
@bors
Copy link
Contributor

bors commented Feb 14, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing de2aa26 to master...

@bors bors merged commit 74cb863 into rust-lang:master Feb 14, 2017
@ehuss ehuss added this to the 1.17.0 milestone Feb 6, 2022
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.

6 participants