@@ -24,7 +24,8 @@ RUN apt-get update && apt-get build-dep -y clang llvm && apt-get install -y --no
24
24
# Needed for apt-key to work:
25
25
dirmngr \
26
26
gpg-agent \
27
- g++-9-arm-linux-gnueabi
27
+ g++-9-arm-linux-gnueabi \
28
+ gcc-riscv64-linux-gnu
28
29
29
30
RUN apt-key adv --batch --yes --keyserver keyserver.ubuntu.com --recv-keys 74DA7924C5513486
30
31
RUN add-apt-repository -y 'deb https://apt.dilos.org/dilos dilos2 main'
@@ -74,6 +75,11 @@ RUN env \
74
75
CXX=arm-linux-gnueabi-g++-9 CXXFLAGS="-march=armv7-a" \
75
76
bash musl.sh armv7 && \
76
77
rm -rf /build/*
78
+ RUN env \
79
+ CC=riscv64-linux-gnu-gcc \
80
+ CXX=riscv64-linux-gnu-gcc \
81
+ bash musl.sh riscv64gc && \
82
+ rm -rf /build/*
77
83
78
84
WORKDIR /tmp
79
85
COPY scripts/shared.sh /tmp/
@@ -124,6 +130,7 @@ ENV TARGETS=$TARGETS,x86_64-unknown-none
124
130
ENV TARGETS=$TARGETS,aarch64-unknown-uefi
125
131
ENV TARGETS=$TARGETS,i686-unknown-uefi
126
132
ENV TARGETS=$TARGETS,x86_64-unknown-uefi
133
+ ENV TARGETS=$TARGETS,riscv64gc-unknown-linux-musl
127
134
128
135
# As per https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1300211
129
136
# we need asm in the search path for gcc-9 (for gnux32) but not in the search path of the
@@ -132,6 +139,7 @@ ENV TARGETS=$TARGETS,x86_64-unknown-uefi
132
139
RUN ln -s /usr/include/x86_64-linux-gnu/asm /usr/local/include/asm
133
140
134
141
ENV RUST_CONFIGURE_ARGS --enable-extended --enable-lld --enable-llvm-bitcode-linker --disable-docs \
135
- --musl-root-armv7=/musl-armv7
142
+ --musl-root-armv7=/musl-armv7 \
143
+ --musl-root-riscv64gc=/musl-riscv64gc
136
144
137
145
ENV SCRIPT python3 ../x.py dist --host='' --target $TARGETS
0 commit comments