mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-29 06:24:20 +00:00
jk: The dæmons want more blood
This commit is contained in:
parent
245f1dad38
commit
08d7d73e6b
1 changed files with 3 additions and 6 deletions
|
@ -68,20 +68,17 @@ RUN \
|
||||||
RUSTTARGET=x86_64-unknown-linux-gnu; \
|
RUSTTARGET=x86_64-unknown-linux-gnu; \
|
||||||
export TARGET_CC=/usr/bin/x86-64-linux-gnu-gcc; \
|
export TARGET_CC=/usr/bin/x86-64-linux-gnu-gcc; \
|
||||||
export TARGET_AR=/usr/bin/x86-64-linux-gnu-ar; \
|
export TARGET_AR=/usr/bin/x86-64-linux-gnu-ar; \
|
||||||
export HOST_PKG_CONFIG_PATH=/; \
|
export PKG_CONFIG_PATH=/usr/x86-64-linux-gnu; \
|
||||||
export TARGET_PKG_CONFIG_PATH=/usr/x86-64-linux-gnu; \
|
|
||||||
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
||||||
RUSTTARGET=aarch64-unknown-linux-gnu; \
|
RUSTTARGET=aarch64-unknown-linux-gnu; \
|
||||||
export TARGET_CC=/usr/bin/aarch64-linux-gnu-gcc; \
|
export TARGET_CC=/usr/bin/aarch64-linux-gnu-gcc; \
|
||||||
export TARGET_AR=/usr/bin/aarch64-linux-gnu-ar; \
|
export TARGET_AR=/usr/bin/aarch64-linux-gnu-ar; \
|
||||||
export HOST_PKG_CONFIG_PATH=/; \
|
export PKG_CONFIG_PATH=/usr/aarch64-linux-gnu; \
|
||||||
export TARGET_PKG_CONFIG_PATH=/usr/aarch64-linux-gnu; \
|
|
||||||
elif [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
elif [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
||||||
RUSTTARGET=armv7-unknown-linux-gnueabihf; \
|
RUSTTARGET=armv7-unknown-linux-gnueabihf; \
|
||||||
export TARGET_CC=/usr/bin/arm-linux-gnueabihf-gcc; \
|
export TARGET_CC=/usr/bin/arm-linux-gnueabihf-gcc; \
|
||||||
export TARGET_AR=/usr/bin/arm-linux-gnueabihf-ar; \
|
export TARGET_AR=/usr/bin/arm-linux-gnueabihf-ar; \
|
||||||
export HOST_PKG_CONFIG_PATH=/; \
|
export PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf; \
|
||||||
export TARGET_PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf; \
|
|
||||||
fi && \
|
fi && \
|
||||||
cargo build --all-features --bins --release --target=${RUSTTARGET}
|
cargo build --all-features --bins --release --target=${RUSTTARGET}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue