]>
Commit | Line | Data |
---|---|---|
abe05a73 XL |
1 | FROM ubuntu:16.04 |
2 | ||
3 | RUN apt-get update && apt-get install -y --no-install-recommends \ | |
4 | g++ \ | |
5 | make \ | |
6 | file \ | |
7 | curl \ | |
8 | ca-certificates \ | |
ba9703b0 | 9 | python3 \ |
abe05a73 XL |
10 | git \ |
11 | cmake \ | |
12 | sudo \ | |
13 | bzip2 \ | |
14 | xz-utils \ | |
15 | wget \ | |
16 | libssl-dev \ | |
17 | bsdtar \ | |
18 | pkg-config | |
19 | ||
20 | ||
21 | COPY dist-x86_64-dragonfly/build-toolchain.sh /tmp/ | |
22 | COPY dist-x86_64-dragonfly/patch-toolchain /tmp/ | |
23 | RUN /tmp/build-toolchain.sh /tmp/patch-toolchain | |
24 | ||
25 | COPY scripts/sccache.sh /scripts/ | |
26 | RUN sh /scripts/sccache.sh | |
27 | ||
28 | ENV \ | |
29 | AR_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-ar \ | |
30 | CC_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-gcc \ | |
31 | CXX_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-g++ | |
32 | ||
33 | ENV HOSTS=x86_64-unknown-dragonfly | |
34 | ||
0531ce1d | 35 | ENV RUST_CONFIGURE_ARGS --enable-extended |
ba9703b0 | 36 | ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS |