Add libclang-dev, more environment variables
Some checks failed
continuous-integration/drone/tag Build is failing
Some checks failed
continuous-integration/drone/tag Build is failing
This commit is contained in:
parent
97c9cae97d
commit
5c2f5c4ab4
11
Dockerfile
11
Dockerfile
|
@ -3,6 +3,11 @@ ARG TARGET
|
||||||
# build environment
|
# build environment
|
||||||
FROM rustembedded/cross:$TARGET
|
FROM rustembedded/cross:$TARGET
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apt update && \
|
||||||
|
apt upgrade -y && \
|
||||||
|
apt install libclang-dev
|
||||||
|
|
||||||
ARG UID=991
|
ARG UID=991
|
||||||
ARG GID=991
|
ARG GID=991
|
||||||
ARG TARGET
|
ARG TARGET
|
||||||
|
@ -15,7 +20,11 @@ ENV \
|
||||||
TARGET=${TARGET} \
|
TARGET=${TARGET} \
|
||||||
TOOL=${TOOL} \
|
TOOL=${TOOL} \
|
||||||
BUILD_MODE=${BUILD_MODE} \
|
BUILD_MODE=${BUILD_MODE} \
|
||||||
TOOLCHAIN=stable
|
TOOLCHAIN=stable \
|
||||||
|
CC=${TOOL}-cc \
|
||||||
|
CXX=${TOOL}-c++ \
|
||||||
|
BINDGEN_EXTRA_CLANG_ARGS="--sysroot=/usr/local/$TOOL/ --target=$TARGET -L/usr/local/$TOOL/lib -I/usr/local/$TOOL/include --static -static-libgcc -static-libstdc++" \
|
||||||
|
RUSTFLAGS="-C target-feature=+crt-static -L/usr/local/$TOOL/lib"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
addgroup --gid "${GID}" build && \
|
addgroup --gid "${GID}" build && \
|
||||||
|
|
Loading…
Reference in a new issue