|
1 | 1 | FROM ubuntu:18.04
|
2 | 2 |
|
3 |
| -RUN apt-get update && \ |
| 3 | +RUN dpkg --add-architecture ppc64el && \ |
| 4 | + sed -e "\,security.ubuntu.com/ubuntu,p;s,security.ubuntu.com/ubuntu,ports.ubuntu.com/ubuntu-ports,g" \ |
| 5 | + -e "\,archive.ubuntu.com/ubuntu,p;s,archive.ubuntu.com/ubuntu,ports.ubuntu.com/ubuntu-ports,g" \ |
| 6 | + -i /etc/apt/sources.list && \ |
| 7 | + sed -e "\,security.ubuntu.com/ubuntu,s.^deb .deb [ arch=amd64,i386 ] .g" \ |
| 8 | + -e "\,archive.ubuntu.com/ubuntu,s.^deb .deb [ arch=amd64,i386 ] .g" \ |
| 9 | + -e "\,ports.ubuntu.com/ubuntu-ports,s.^deb .deb [ arch=ppc64el ] .g" \ |
| 10 | + -i /etc/apt/sources.list && \ |
| 11 | + apt-get update && \ |
4 | 12 | apt-get install -y --no-install-recommends \
|
5 |
| - gcc libc6-dev qemu-user-static ca-certificates \ |
| 13 | + gcc libc6-dev ca-certificates \ |
6 | 14 | gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \
|
7 |
| - qemu-system-ppc |
| 15 | + clang xz-utils \ |
| 16 | + qemu-user-static qemu-system-ppc && \ |
| 17 | + cd /tmp && \ |
| 18 | + apt-get download libclang-common-6.0-dev:ppc64el && \ |
| 19 | + ar xf libclang-common-6.0-dev_*_ppc64el.deb && \ |
| 20 | + tar -C/ -xf data.tar.xz ."$(dirname $(clang -rtlib=compiler-rt --print-libgcc-file-name))" |
8 | 21 |
|
9 | 22 | ENV CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER=powerpc64le-linux-gnu-gcc \
|
10 | 23 | CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_RUNNER=qemu-ppc64le-static \
|
11 | 24 | QEMU_CPU=POWER8 \
|
12 | 25 | QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu \
|
| 26 | + CLANG=clang \ |
13 | 27 | RUST_TEST_THREADS=1
|
0 commit comments