diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-20 16:26:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-20 16:26:40 +0200 |
| commit | af77aedb0e895cd169614f86e59ff9f84c09f7a0 (patch) | |
| tree | 941a238f28518e40268f5973fcc755a9b3c8caed /src | |
| parent | ff352cd65a0377dd8679e4ee8044298cc018be55 (diff) | |
| parent | 9b3f072292f5d742099d836862074b6349b05a77 (diff) | |
| download | rust-af77aedb0e895cd169614f86e59ff9f84c09f7a0.tar.gz rust-af77aedb0e895cd169614f86e59ff9f84c09f7a0.zip | |
Rollup merge of #63722 - Mark-Simulacrum:bootstrap-rustflags, r=alexcrichton
Don't use stage naming in RUSTFLAGS environment variables This patch supports less behavior than before, since specifiying stage 1 vs stage 2 is no longer possible, but that is presumably a somewhat rare use case anyway, so not supporting it seems acceptable (and it can be readded easily if desired). Fixes #33609
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/builder.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index f0054c36c0c..afde076a35a 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -859,12 +859,12 @@ impl<'a> Builder<'a> { stage = compiler.stage; } - let mut extra_args = env::var(&format!("RUSTFLAGS_STAGE_{}", stage)).unwrap_or_default(); + let mut extra_args = String::new(); if stage != 0 { - let s = env::var("RUSTFLAGS_STAGE_NOT_0").unwrap_or_default(); - if !extra_args.is_empty() { - extra_args.push_str(" "); - } + let s = env::var("RUSTFLAGS_NOT_BOOTSTRAP").unwrap_or_default(); + extra_args.push_str(&s); + } else { + let s = env::var("RUSTFLAGS_BOOTSTRAP").unwrap_or_default(); extra_args.push_str(&s); } |
