Skip to content

Commit 9f882b9

Browse files
committed
Rollup merge of rust-lang#37566 - brson:env, r=alexcrichton
Set RUSTC_BOOTSTRAP to some value. Environment variables on windows can't be empty.
2 parents b9f18bf + 6a34feb commit 9f882b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ CFG_INFO := $(info cfg: disabling unstable features (CFG_DISABLE_UNSTABLE_FEATUR
372372
# Turn on feature-staging
373373
export CFG_DISABLE_UNSTABLE_FEATURES
374374
# Subvert unstable feature lints to do the self-build
375-
export RUSTC_BOOTSTRAP
375+
export RUSTC_BOOTSTRAP=1
376376
endif
377377
ifdef CFG_MUSL_ROOT
378378
export CFG_MUSL_ROOT

src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ impl Build {
873873

874874
/// Adds the compiler's bootstrap key to the environment of `cmd`.
875875
fn add_bootstrap_key(&self, cmd: &mut Command) {
876-
cmd.env("RUSTC_BOOTSTRAP", "");
876+
cmd.env("RUSTC_BOOTSTRAP", "1");
877877
// FIXME: Transitionary measure to bootstrap using the old bootstrap logic.
878878
// Remove this once the bootstrap compiler uses the new login in Issue #36548.
879879
cmd.env("RUSTC_BOOTSTRAP_KEY", "62b3e239");

0 commit comments

Comments
 (0)