mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 21:21:32 +00:00
14 lines
274 B
Bash
Executable File
14 lines
274 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
TOOLS_DIR="$(dirname "${0}")"
|
|
RUST_TARGET="$("${TOOLS_DIR}/target.sh")"
|
|
|
|
if [ "${RUST_LIBC}" = "musl" ] && [ -f "/etc/alpine-release" ]
|
|
then
|
|
export RUSTFLAGS="-Ctarget-feature=-crt-static"
|
|
fi
|
|
|
|
export CARGO_BUILD_TARGET="${RUST_TARGET}"
|
|
exec cargo "${@}"
|