build: export C_INCLUDE_PATH in aarch64 linux gnu image

This commit is contained in:
LongYinan 2022-05-04 14:47:54 +08:00
parent 4fb120ab34
commit 74cfcd377a
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -6,7 +6,8 @@ ENV RUSTUP_HOME=/usr/local/rustup \
CC=clang \ CC=clang \
CXX=clang++ \ CXX=clang++ \
CC_aarch64_unknown_linux_gnu=clang \ CC_aarch64_unknown_linux_gnu=clang \
CXX_aarch64_unknown_linux_gnu=clang++ CXX_aarch64_unknown_linux_gnu=clang++ \
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 - && \ RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main" >> /etc/apt/sources.list && \ echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main" >> /etc/apt/sources.list && \