feat: compile extra rust tools

This commit is contained in:
Lance R. Vick 2024-02-29 22:54:35 -08:00
parent 46e9d04b73
commit f9eaba5e15
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D

View file

@ -105,6 +105,7 @@ COPY <<-'EOF' build.sh
set -eux
VERSION=${1}
BUILD_VERSION=${2}
TOOLS=${3:-cargo}
PREFIX=/rust-${VERSION}/usr
BUILD_PREFIX=/rust-${BUILD_VERSION}/usr
#HACK because rust build seemindly ignores LD_LIBRARY_PATH
@ -118,7 +119,7 @@ COPY <<-'EOF' build.sh
--enable-local-rust \
--llvm-root="/usr/lib" \
--disable-docs \
--tools="cargo" \
--tools="${TOOLS}" \
--enable-llvm-link-shared \
--enable-option-checking \
--enable-locked-deps \
@ -183,7 +184,7 @@ RUN sh build.sh 1.74.0 1.73.0
# HACK: Required by Rust 1.75.0
RUN mkdir -p $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/
RUN sh build.sh 1.75.0 1.74.0
RUN sh build.sh 1.76.0 1.75.0
RUN sh build.sh 1.76.0 1.75.0 cargo,clippy,rustdoc,rustfmt,rust-demangler
FROM build as install
RUN <<-EOF