-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Adding logic to the configuration help script to take default values into account #130125
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
Conversation
Initial approach
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @onur-ozkan (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
o("local-rust", None, "use an installed rustc rather than downloading a snapshot") | ||
o("debug", "rust.debug", "enables debugging environment; does not affect optimization of bootstrapped code", default=False) | ||
o("docs", "build.docs", "build standard library documentation", default=True) | ||
o("compiler-docs", "build.compiler-docs", "build compiler documentation", default=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this prints --disable-docs
, then the current description afterwards must be negated. E.g. to "skip building compiler documentation".
o("local-rebuild", "build.local-rebuild", "assume local-rust matches the current version, for rebuilds; implies local-rust, and is implied if local-rust already matches the current version", default=False) | ||
o("llvm-static-stdcpp", "llvm.static-libstdcpp", "statically link to libstdc++ for LLVM", default=False) | ||
o("llvm-link-shared", "llvm.link-shared", "prefer shared linking to LLVM (llvm-config --link-shared)", default=False) | ||
o("rpath", "rust.rpath", "build rpaths into rustc itself", default=False) | ||
o("codegen-tests", "rust.codegen-tests", "run the tests/codegen tests", default=False) | ||
o("ninja", "llvm.ninja", "build LLVM using the Ninja generator (for MSVC, requires building in the correct environment)", default=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so unmaintainable approach. We can't track these default values unfortunately.
Hi, I thought so too. This was more of a way to demonstrate this very issue. |
No description provided.