mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
build: target: use alpine rust triplets when building on alpine (#49)
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
@ -5,11 +5,6 @@ TOOLS_DIR="$(dirname "${0}")"
|
||||
RUST_TARGET="$("${TOOLS_DIR}/target.sh")"
|
||||
CROSS_COMPILE="$("${TOOLS_DIR}/cross-compile.sh")"
|
||||
|
||||
if [ "${TARGET_LIBC}" = "musl" ] && [ -f "/etc/alpine-release" ]
|
||||
then
|
||||
export RUSTFLAGS="-Ctarget-feature=-crt-static"
|
||||
fi
|
||||
|
||||
if [ -z "${CARGO}" ]
|
||||
then
|
||||
if [ "${CROSS_COMPILE}" = "1" ] && command -v cross > /dev/null
|
||||
|
Reference in New Issue
Block a user