build: add --sysroot flag to clang/clang++ in aarch64 linux gnu image

This commit is contained in:
LongYinan 2022-05-04 16:34:28 +08:00
parent 74cfcd377a
commit e7464383d3
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -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 - && \