From d2e115ccb3496ed3aba8a37d9482ed8519c02753 Mon Sep 17 00:00:00 2001 From: Gabriel de Perthuis Date: Tue, 24 Nov 2020 12:20:16 +0100 Subject: [PATCH] Update bootstrap documentation with the new envvars for RUSTFLAGS This follows . --- src/building/bootstrapping.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/building/bootstrapping.md b/src/building/bootstrapping.md index 2da4d2e46..0921755a0 100644 --- a/src/building/bootstrapping.md +++ b/src/building/bootstrapping.md @@ -309,12 +309,8 @@ The following tables indicate the outputs of various stage actions: ## Passing stage-specific flags to `rustc` `x.py` allows you to pass stage-specific flags to `rustc` when bootstrapping. -The `RUSTFLAGS_STAGE_0`, `RUSTFLAGS_STAGE_1` and `RUSTFLAGS_STAGE_2` -environment variables pass the given flags when building stage 0, 1, and 2 -artifacts respectively. - -Additionally, the `RUSTFLAGS_STAGE_NOT_0` variable, as its name suggests, passes -the given arguments if the stage is not 0. +The `RUSTFLAGS_BOOTSTRAP` environment variable is passed as RUSTFLAGS to the bootstrap stage +(stage0), and `RUSTFLAGS_NOT_BOOTSTRAP` is passed when building artifacts for later stages. ## Environment Variables