Skip to content

Commit

Permalink
Update default Rust to nightly-2024-06-17
Browse files Browse the repository at this point in the history
This commit updates the default version of Rust installed for fuzzing.
In google#11626 it was found that at the time Rust's upgraded version of LLVM
didn't play well with the LLVM used on OSS-Fuzz, but since then Rust was
temporarily pinned in google#11681 to an older nightly. It looks like though
that in google#11714 the LLVM version was upgraded to 18 so this updates Rust
to today's nightly which is using LLVM 18.1.7. Discussion in google#11626
seems to point in the direction of keeping Rust pinned rather than going
back to using `nightly` which updates each day.

The motivation for this commit is that the Wasmtime project is seeing
[build failures][log] for using APIs stabilized in Rust 1.77.0. The
older nightly version used on OSS-Fuzz doesn't have access to these
APIs, so this update should help resolve Wasmtime's build failure.

[log]: https://oss-fuzz-build-logs.storage.googleapis.com/log-cc290775-8669-4cba-8370-60d5a56a9de8.txt
  • Loading branch information
alexcrichton committed Jun 17, 2024
1 parent 7f91500 commit d84f88b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/base-images/base-builder/install_rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#
################################################################################

curl https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly-2023-12-28 --profile=minimal
curl https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly-2024-06-17 --profile=minimal
cargo install cargo-fuzz && rm -rf /rust/registry
# Needed to recompile rust std library for MSAN
rustup component add rust-src --toolchain nightly-2023-12-28
rustup component add rust-src --toolchain nightly-2024-06-17
cp -r /usr/local/lib/x86_64-unknown-linux-gnu/* /usr/local/lib/

0 comments on commit d84f88b

Please sign in to comment.