Skip to content

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

Closed

Conversation

saksham-agarwal-dev
Copy link

No description provided.

@rustbot
Copy link
Collaborator

rustbot commented Sep 9, 2024

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 (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Sep 9, 2024
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)

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".

Comment on lines +45 to +50
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)
Copy link
Member

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.

@onur-ozkan onur-ozkan added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 22, 2024
@saksham-agarwal-dev
Copy link
Author

Hi, I thought so too. This was more of a way to demonstrate this very issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants