feat: compile extra rust tools
This commit is contained in:
parent
46e9d04b73
commit
f9eaba5e15
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue