Skip to content

[miri] install rust-src component to be able to build the miri sysroot #113

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions miri/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ RUST=/opt/compiler-explorer/rust-miri-${VERSION}

mv /opt/compiler-explorer/rust-nightly ${RUST}

# install standard library sources
curl --proto '=https' --tlsv1.2 -sSf https://static.rust-lang.org/dist/rust-src-nightly.tar.gz \
| tar zxf -
./rust-src-nightly/install.sh --prefix=${RUST} --verbose

# put `rustup` on `$PATH`
source .cargo/env

Expand All @@ -44,4 +49,7 @@ for manifest_path in ${RUST}/lib/rustlib/manifest-rust-std-*; do
cargo miri setup --target=${manifest_path#*/manifest-rust-std-} --verbose
done

# remove standard library -- we don’t need it any more
rm -rf ${RUST}/lib/rustlib

complete "${RUST}" "rust-miri-${VERSION}" "${OUTPUT}"