-
Notifications
You must be signed in to change notification settings - Fork 985
feat(install): add skip_std flag to allow skipping rust-std installation for custom targets
#4587
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?
Conversation
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.
So I'm not sure yet how/where the ToolchainSection::skip_std field makes it into the DistOptions?
da619eb to
c5b3caa
Compare
c5b3caa to
2d5fe7f
Compare
Yeah, sorry about that. I think it should be fine now, the flag flows through the chain where it should be applied as |
| let desc = toolchain.resolve(&cfg.get_default_host_triple()?)?; | ||
| let status = cfg | ||
| .ensure_installed(&desc, vec![], vec![], None, force_non_host, true) | ||
| .ensure_installed(&desc, vec![], vec![], None, force_non_host, true, 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.
@djc I think I might be confused with this one- how do you suggest I handle this? I don't know if it's best here to add an attribute, ignoring it.
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'm not sure what you mean. Do you have more context on what the problem is/why you're not sure?
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.
@djc I'm sorry, I think I get it..So if I understand correctly, I'm supposed to remove the extra parameter completely from ensure_installed and only set skip_std on DistOptions in the caller before installation?
Closes #4442
Revision of #4585