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