Skip to content

extend x.py so it is easy to pass custom -Z flags when building after stage 0 #47658

Closed
@nikomatsakis

Description

We'd like to start trying to bootstrap with -Znll enabled. From what I can tell, there is no easy way to do this at present: using RUSTFLAGS=-Znll will cause the flag to be passed to all stages, but the support for NLL in stage0 is not up to the task.

We could extend x.py to support RUSTFLAGS_STAGE{0,1,2} (which would get "copied into" the RUSTFLAGS environment when building stage 0, 1, or 2.

Or we could make some kind of flag.

It might also be nice to just support RUSTFLAGS_NOT_STAGE0 since usually that's what you want.

Or maybe there's an existing solution here?

Metadata

Labels

C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions