@@ -24,8 +24,7 @@ RUN apt-get update && apt-get build-dep -y clang llvm && apt-get install -y --no
2424 # Needed for apt-key to work:
2525 dirmngr \
2626 gpg-agent \
27- g++-9-arm-linux-gnueabi \
28- g++-11-riscv64-linux-gnu
27+ g++-9-arm-linux-gnueabi
2928
3029ENV \
3130 AR_x86_64_unknown_fuchsia=x86_64-unknown-fuchsia-ar \
@@ -71,10 +70,6 @@ RUN env \
7170 CC=arm-linux-gnueabi-gcc-9 CFLAGS="-march=armv7-a" \
7271 CXX=arm-linux-gnueabi-g++-9 CXXFLAGS="-march=armv7-a" \
7372 bash musl.sh armv7 && \
74- env \
75- CC=riscv64-linux-gnu-gcc-11 \
76- CXX=riscv64-linux-gnu-g++-11 \
77- bash musl.sh riscv64gc && \
7873 rm -rf /build/*
7974
8075WORKDIR /tmp
@@ -120,7 +115,6 @@ ENV TARGETS=$TARGETS,x86_64-unknown-none
120115ENV TARGETS=$TARGETS,aarch64-unknown-uefi
121116ENV TARGETS=$TARGETS,i686-unknown-uefi
122117ENV TARGETS=$TARGETS,x86_64-unknown-uefi
123- ENV TARGETS=$TARGETS,riscv64gc-unknown-linux-musl
124118
125119ENV TARGETS_SANITIZERS=x86_64-unknown-linux-gnuasan
126120ENV TARGETS_SANITIZERS=$TARGETS_SANITIZERS,x86_64-unknown-linux-gnumsan
@@ -132,11 +126,7 @@ ENV TARGETS_SANITIZERS=$TARGETS_SANITIZERS,x86_64-unknown-linux-gnutsan
132126# Luckily one of the folders is /usr/local/include so symlink /usr/include/x86_64-linux-gnu/asm there
133127RUN ln -s /usr/include/x86_64-linux-gnu/asm /usr/local/include/asm
134128
135- # musl-gcc can't find libgcc_s.so.1 since it doesn't use the standard search paths.
136- RUN ln -s /usr/riscv64-linux-gnu/lib/libgcc_s.so.1 /usr/lib/gcc-cross/riscv64-linux-gnu/11/
137-
138129ENV RUST_CONFIGURE_ARGS="--enable-extended --enable-lld --enable-llvm-bitcode-linker --disable-docs \
139- --musl-root-armv7=/musl-armv7 \
140- --musl-root-riscv64gc=/musl-riscv64gc"
130+ --musl-root-armv7=/musl-armv7"
141131
142132ENV SCRIPT="python3 ../x.py dist --host= --target $TARGETS && python3 ../x.py dist --host= --set build.sanitizers=true --target $TARGETS_SANITIZERS"
0 commit comments