Skip to content

Commit

Permalink
bootstrap: rename Config.rebuild to .local_rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 23, 2016
1 parent 1cae0c5 commit 0ca7d3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/build/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub struct Config {
pub target: Vec<String>,
pub rustc: Option<String>,
pub cargo: Option<String>,
pub rebuild: bool,
pub local_rebuild: bool,

// libstd features
pub debug_jemalloc: bool,
Expand Down Expand Up @@ -316,7 +316,7 @@ impl Config {
("RPATH", self.rust_rpath),
("OPTIMIZE_TESTS", self.rust_optimize_tests),
("DEBUGINFO_TESTS", self.rust_debuginfo_tests),
("LOCAL_REBUILD", self.rebuild),
("LOCAL_REBUILD", self.local_rebuild),
}

match key {
Expand Down
4 changes: 2 additions & 2 deletions src/bootstrap/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ impl Build {
.arg("--target").arg(target);

let stage;
if compiler.stage == 0 && self.config.rebuild {
if compiler.stage == 0 && self.config.local_rebuild {
// Assume the local-rebuild rustc already has stage1 features.
stage = 1;
} else {
Expand Down Expand Up @@ -752,7 +752,7 @@ impl Build {
// In stage0 we're using a previously released stable compiler, so we
// use the stage0 bootstrap key. Otherwise we use our own build's
// bootstrap key.
let bootstrap_key = if compiler.is_snapshot(self) && !self.config.rebuild {
let bootstrap_key = if compiler.is_snapshot(self) && !self.config.local_rebuild {
&self.bootstrap_key_stage0
} else {
&self.bootstrap_key
Expand Down

0 comments on commit 0ca7d3d

Please sign in to comment.