mirror of
https://github.com/openharmony/third_party_rust_libc.git
synced 2026-07-24 03:45:21 -04:00
5622b032ec
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
12 lines
436 B
Docker
12 lines
436 B
Docker
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc libc6-dev qemu-user ca-certificates \
|
|
gcc-powerpc-linux-gnu libc6-dev-powerpc-cross \
|
|
qemu-system-ppc
|
|
|
|
ENV CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_LINKER=powerpc-linux-gnu-gcc \
|
|
CARGO_TARGET_POWERPC_UNKNOWN_LINUX_GNU_RUNNER="qemu-ppc -L /usr/powerpc-linux-gnu" \
|
|
CC=powerpc-linux-gnu-gcc \
|
|
PATH=$PATH:/rust/bin
|