Skip to content

Commit b5af9f0

Browse files
g2pJoshua Nelson
authored and
Joshua Nelson
committed
Update bootstrap documentation with the new envvars for RUSTFLAGS
This follows <rust-lang/rust#63722>.
1 parent 8ebb338 commit b5af9f0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: src/building/bootstrapping.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,8 @@ The following tables indicate the outputs of various stage actions:
309309
## Passing stage-specific flags to `rustc`
310310

311311
`x.py` allows you to pass stage-specific flags to `rustc` when bootstrapping.
312-
The `RUSTFLAGS_STAGE_0`, `RUSTFLAGS_STAGE_1` and `RUSTFLAGS_STAGE_2`
313-
environment variables pass the given flags when building stage 0, 1, and 2
314-
artifacts respectively.
315-
316-
Additionally, the `RUSTFLAGS_STAGE_NOT_0` variable, as its name suggests, passes
317-
the given arguments if the stage is not 0.
312+
The `RUSTFLAGS_BOOTSTRAP` environment variable is passed as RUSTFLAGS to the bootstrap stage
313+
(stage0), and `RUSTFLAGS_NOT_BOOTSTRAP` is passed when building artifacts for later stages.
318314

319315
## Environment Variables
320316

0 commit comments

Comments
 (0)