-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Rename the src install build step to rust-src. #162423
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -324,12 +324,12 @@ impl CommandLineStep for Src { | |
| const IS_HOST: bool = true; | ||
|
|
||
| fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { | ||
| run.path("src") | ||
| run.alias("rust-src") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @Kobzol as well, in case you know of an edge case for this alias. EDIT: ah, but this is an
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Left some comments. I think that @Mark-Simulacrum's comment wasn't correct. |
||
| } | ||
|
|
||
| fn is_default_step(builder: &Builder<'_>) -> bool { | ||
| let config = &builder.config; | ||
| config.extended && config.tools.as_ref().is_none_or(|t| t.contains("src")) | ||
| config.extended && config.tools.as_ref().is_none_or(|t| t.contains("rust-src")) | ||
| } | ||
|
|
||
| fn make_run(run: RunConfig<'_>) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
I think this will break
rust/src/bootstrap/mk/Makefile.in
Line 107 in 20d35a3
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.
Fixed it, and fixed the remaining 4 occurrences I could find. I have taken the approach of everywhere src is used, it is intentional that rust-src is included, but given the size of the src directory, this may not always be the case, so if someone with more domain knowledge can take a look that would be great.