Skip to content
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

use rustc-build-sysroot instead of xargo #2564

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Sep 24, 2022

This uses my crate https://github.com/RalfJung/rustc-build-sysroot instead of xargo to do the sysroot builds. That has the advantage of simplifying the Miri setup process and saving significant amounts of CI time for Miri users (since they don't have to build xargo from source all the time). Also xargo has a lot more functionality than we need so this should be easier to maintain and tweak for our needs.

With this, Miri no longer honors the XARGO_RUST_SRC env var to determine where the standard library sources are taken from. The README anyway says to use MIRI_LIB_SRC which will still work.

TODO:

  • add support for no-std targets
  • test that this works in the rustc repo

@RalfJung RalfJung force-pushed the no-more-xargo branch 2 times, most recently from b3c6bc8 to 8694aa6 Compare September 24, 2022 20:25
@bors

This comment was marked as resolved.

@RalfJung
Copy link
Member Author

x.py build looks good locally. :)
r? @oli-obk

@RalfJung RalfJung added the S-waiting-on-review Status: Waiting for a review to complete label Sep 25, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Sep 28, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Sep 28, 2022

📌 Commit a773d47 has been approved by oli-obk

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 28, 2022

⌛ Testing commit a773d47 with merge b4e028d...

@bors
Copy link
Contributor

bors commented Sep 28, 2022

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing b4e028d to master...

@bors bors merged commit b4e028d into rust-lang:master Sep 28, 2022
@RalfJung RalfJung deleted the no-more-xargo branch September 28, 2022 20:29
RalfJung added a commit to RalfJung/miri that referenced this pull request Oct 2, 2022
teskje added a commit to teskje/materialize that referenced this pull request Jan 4, 2023
Miri does not install xargo anymore [0], so copying xargo binaries
fails. But it also isn't needed anymore, so those lines can simply be
removed.

[0]: rust-lang/miri#2564
sjwiesman pushed a commit to sjwiesman/materialize that referenced this pull request Jan 4, 2023
Miri does not install xargo anymore [0], so copying xargo binaries
fails. But it also isn't needed anymore, so those lines can simply be
removed.

[0]: rust-lang/miri#2564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Waiting for a review to complete
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants