fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
949 B26 linesraw
1FROM ubuntu:22.04
2
3ARG DEBIAN_FRONTEND=noninteractive
4COPY scripts/cross-apt-packages.sh /scripts/
5RUN sh /scripts/cross-apt-packages.sh
6RUN apt-get install -y zlib1g-dev
7
8COPY host-x86_64/dist-x86_64-netbsd/build-netbsd-toolchain.sh /tmp/
9# GCC 10 changed the default to -fno-common, which causes errors with the NetBSD-9.0 sources like:
10# /usr/bin/ld: buf.o:(.bss+0x0): multiple definition of `debug_file'; arch.o:(.bss+0x0): first defined here
11RUN env HOST_CFLAGS="-O -fcommon" /tmp/build-netbsd-toolchain.sh
12
13COPY scripts/sccache.sh /scripts/
14RUN sh /scripts/sccache.sh
15
16ENV PATH=$PATH:/x-tools/x86_64-unknown-netbsd/bin
17
18ENV \
19    AR_x86_64_unknown_netbsd=x86_64--netbsd-ar \
20    CC_x86_64_unknown_netbsd=x86_64--netbsd-gcc-sysroot \
21    CXX_x86_64_unknown_netbsd=x86_64--netbsd-g++-sysroot
22
23ENV HOSTS=x86_64-unknown-netbsd
24
25ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
26ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS