From e7464383d3d9fb3af4a7645499ff840eab944bb0 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 4 May 2022 16:34:28 +0800 Subject: [PATCH] build: add --sysroot flag to clang/clang++ in aarch64 linux gnu image --- debian-aarch64.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian-aarch64.Dockerfile b/debian-aarch64.Dockerfile index 15556f9f..c30b85de 100644 --- a/debian-aarch64.Dockerfile +++ b/debian-aarch64.Dockerfile @@ -5,8 +5,8 @@ ENV RUSTUP_HOME=/usr/local/rustup \ PATH=/usr/local/cargo/bin:$PATH \ CC=clang \ CXX=clang++ \ - CC_aarch64_unknown_linux_gnu=clang \ - CXX_aarch64_unknown_linux_gnu=clang++ \ + CC_aarch64_unknown_linux_gnu="clang --sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot" \ + CXX_aarch64_unknown_linux_gnu="clang++ --sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot" \ C_INCLUDE_PATH=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot/usr/include RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \