-
Notifications
You must be signed in to change notification settings - Fork 13.4k
download-rustc downloads rustc-dev even when it is not needed #142013
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
This will add a lot of complexity on bootstrap such as having different download, extract and copy logic depending on whether ci-rustc is enabled and whether it's running on a library or non-library step. Also, you only download it once per HEAD so unless you frequently run |
Also, you only download it once per HEAD so unless you frequently run git pull, it shouldn't significantly affect your network usage
I have to pull at least when there is a conflict for one of my PRs... Which is pretty common. So there's hardly a train ride where I do not pull.
|
@onur-ozkan i think this should be simpler to implement than you imagine. rustc-dev can have its own stamp file and directory, and we only add it to the sysroot if someone calls builder.ensure(RustcDev). (in fact I thought we did that already, but maybe I am misremembering). @rustbot label A-download-rustc |
The part I was concerned more was to update/replace current |
So the build system does not currently know whether a build needs the rustc libs? I think ideally, a build step needs to say "I need rustc libs". If it doesn't do that, the libs are not in the search path and hence the build fails. If it does do that, that informs the download_rustc check. |
The typical reason to download nightly rustc in
./x
is to build the standard library. That only needs rustc + std. However, bootstrap currently also downloads rustc-dev. To minimize download time, mobile data usage, and disk space consumption, it'd be nice to avoid the download when it is not needed.Cc @onur-ozkan
The text was updated successfully, but these errors were encountered: