Optionally pass --config down to cargo when building the sysroot#5051
Optionally pass --config down to cargo when building the sysroot#5051erickt wants to merge 1 commit into
--config down to cargo when building the sysroot#5051Conversation
|
Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two. |
|
It looks like rust-src since recently contains the vendored dependencies of std, so no optional config should be needed for this? See rust-lang/rust#156196. |
|
Oh interesting! I’ll test it out with the latest rust-src and get back to you. |
This allows us to do things like point cargo at a vendored directory to support offline builds of the sysroot. Note: this is blocked on RalfJung/rustc-build-sysroot#34 being landed and released in a build.
|
Right now it looks like miri isn't able to find the vendored sources automatically if I block network access: That's also the case if I explicitly point it at the rust-src: However if I use this patch and my patch to Would you rather we hardcode |
|
We could make it so that if the |
|
@RalfJung Yeah I think that would work. We may also be able to just set |
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
This allows us to do things like point cargo at a vendored directory to support offline builds of the sysroot.
Note: this is blocked on RalfJung/rustc-build-sysroot#34 being landed and released in a build.