mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-25 12:34:19 +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; \
|
||||
export TARGET_CC=/usr/bin/x86-64-linux-gnu-gcc; \
|
||||
export TARGET_AR=/usr/bin/x86-64-linux-gnu-ar; \
|
||||
export HOST_PKG_CONFIG_PATH=/; \
|
||||
export TARGET_PKG_CONFIG_PATH=/usr/x86-64-linux-gnu; \
|
||||
export PKG_CONFIG_PATH=/usr/x86-64-linux-gnu; \
|
||||
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
|
||||
RUSTTARGET=aarch64-unknown-linux-gnu; \
|
||||
export TARGET_CC=/usr/bin/aarch64-linux-gnu-gcc; \
|
||||
export TARGET_AR=/usr/bin/aarch64-linux-gnu-ar; \
|
||||
export HOST_PKG_CONFIG_PATH=/; \
|
||||
export TARGET_PKG_CONFIG_PATH=/usr/aarch64-linux-gnu; \
|
||||
export PKG_CONFIG_PATH=/usr/aarch64-linux-gnu; \
|
||||
elif [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
|
||||
RUSTTARGET=armv7-unknown-linux-gnueabihf; \
|
||||
export TARGET_CC=/usr/bin/arm-linux-gnueabihf-gcc; \
|
||||
export TARGET_AR=/usr/bin/arm-linux-gnueabihf-ar; \
|
||||
export HOST_PKG_CONFIG_PATH=/; \
|
||||
export TARGET_PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf; \
|
||||
export PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf; \
|
||||
fi && \
|
||||
cargo build --all-features --bins --release --target=${RUSTTARGET}
|
||||
|
||||
|
|
Loading…
Reference in a new issue