-
Notifications
You must be signed in to change notification settings - Fork 546
document environment variables used when building the compiler #436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note: I believe this is dfferent from rust-lang/rust#44074, as this is concerned with the environment variables used for building the compiler itself, not the environment variables that the compiler uses. However, stage0 probably makes use of the latter. I'm not sure how to manage the fact that those are related -- we probably need to document both. rust-lang/rust#44074 also brings up the |
Most of the listed variables are used by the build system and test suite, not compiler itself. (P.S. I suspect the meaning of many of internal variables could could be more clear if naming schemes were more explicit and consistent, e.g. everything used by |
the
|
Also be wary of code that does |
Triage: we now have a home for this kind of information https://doc.rust-lang.org/rustc/ |
There was some semi-recent discussion bemoaning the compilers undiscoverable environment variables; I suggested there that it might be a good idea to extend the |
(But in practice if we want such a list to be kept up to date, we'll need an API for defining the environment variables in active use by the compiler, much the same way that we define e.g. command line switches via a standard API...) |
Has there been any progress on this? |
I agree with this. Given that we document how to replicate the environment variables for a given run (https://rustc-dev-guide.rust-lang.org/building/bootstrapping.html#environment-variables) I don't think it's important to document the variables themselves - the supported interface here is config.toml, not the env vars. If we were going to document this it would live in |
I am a newbie to compiler development and came across a pretty big documentation gap: environment variables.
I ran the following script to try and pull out all the existing environment variables. I can run it on whatever directories that project contributors want me to. I would like to document these if possible!
Action items for someone more knowledgeable than me:
src/lib* src/bootstrap
. Are there other directories I should be searching?env::var(_os)
(rust) andos.environ.get
(python). Are there other regexes that should be searched?Output
The text was updated successfully, but these errors were encountered: