fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1FROM ubuntu:22.04 2 3COPY scripts/cross-apt-packages.sh /scripts/ 4RUN sh /scripts/cross-apt-packages.sh 5 6COPY scripts/crosstool-ng.sh /scripts/ 7RUN sh /scripts/crosstool-ng.sh 8 9COPY scripts/rustbuild-setup.sh /scripts/ 10RUN sh /scripts/rustbuild-setup.sh 11WORKDIR /tmp 12 13COPY scripts/crosstool-ng-build.sh /scripts/ 14COPY host-x86_64/dist-loongarch64-linux/loongarch64-unknown-linux-gnu.defconfig /tmp/crosstool.defconfig 15RUN /scripts/crosstool-ng-build.sh 16 17COPY scripts/sccache.sh /scripts/ 18RUN sh /scripts/sccache.sh 19 20ENV PATH=$PATH:/x-tools/loongarch64-unknown-linux-gnu/bin 21 22ENV CC_loongarch64_unknown_linux_gnu=loongarch64-unknown-linux-gnu-gcc \ 23 AR_loongarch64_unknown_linux_gnu=loongarch64-unknown-linux-gnu-ar \ 24 CXX_loongarch64_unknown_linux_gnu=loongarch64-unknown-linux-gnu-g++ 25 26ENV HOSTS=loongarch64-unknown-linux-gnu 27 28ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs 29ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS