Skip to content

Commit

Permalink
Auto merge of rust-lang#42055 - michaelwoerister:reenable-incremental…
Browse files Browse the repository at this point in the history
…-cc, r=nikomatsakis

Enable cross-crate incremental compilation by default.

Now that direct metadata hashing has been implemented for a while and we haven't seen any problems with it over at [rust-icci](https://travis-ci.org/rust-icci/), let's re-enable cross crate support for incremental compilation again.

r? @nikomatsakis
  • Loading branch information
bors committed May 18, 2017
2 parents 6af8c6c + 1b8df3d commit 0ed1ec9
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"attempt to recover from parse errors (experimental)"),
incremental: Option<String> = (None, parse_opt_string, [UNTRACKED],
"enable incremental compilation (experimental)"),
incremental_cc: bool = (false, parse_bool, [UNTRACKED],
incremental_cc: bool = (true, parse_bool, [UNTRACKED],
"enable cross-crate incremental compilation (even more experimental)"),
incremental_info: bool = (false, parse_bool, [UNTRACKED],
"print high-level information about incremental reuse (or the lack thereof)"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

pub struct Point {
pub x: f32,
pub y: f32,
Expand Down
2 changes: 0 additions & 2 deletions src/test/incremental/callee_caller_cross_crate/auxiliary/a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

#![crate_type="rlib"]

#[cfg(rpass1)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/incremental/change_private_fn_cc/auxiliary/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

pub struct Point {
pub x: f32,
pub y: f32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

pub struct Point {
pub x: f32,
pub y: f32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

// ignore-tidy-linelength

//[rpass1] compile-flags: -g -Zincremental-cc
//[rpass2] compile-flags: -g -Zincremental-cc
//[rpass3] compile-flags: -g -Zincremental-cc -Zremap-path-prefix-from={{src-base}} -Zremap-path-prefix-to=/the/src
//[rpass1] compile-flags: -g
//[rpass2] compile-flags: -g
//[rpass3] compile-flags: -g -Zremap-path-prefix-from={{src-base}} -Zremap-path-prefix-to=/the/src

#![feature(rustc_attrs)]
#![crate_type="rlib"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

#![allow(warnings)]
#![crate_name = "a"]
#![crate_type = "rlib"]
Expand Down
1 change: 0 additions & 1 deletion src/test/incremental/rlib_cross_crate/auxiliary/a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc
// no-prefer-dynamic

#![crate_type="rlib"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

#![crate_type="rlib"]

#[cfg(rpass1)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/incremental/type_alias_cross_crate/auxiliary/a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// compile-flags: -Z incremental-cc

#![crate_type="rlib"]

#[cfg(rpass1)]
Expand Down

0 comments on commit 0ed1ec9

Please sign in to comment.