Skip to content

Commit

Permalink
Update bootstrap documentation with the new envvars for RUSTFLAGS
Browse files Browse the repository at this point in the history
This follows <rust-lang/rust#63722>.
  • Loading branch information
g2p authored and Joshua Nelson committed Nov 24, 2020
1 parent 8ebb338 commit b5af9f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/building/bootstrapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b5af9f0

Please sign in to comment.