os: build bootable images

This commit is contained in:
alex committed 2024-03-10 00:22:24 +00:00
1 parent 817509bcef
commit 4894bd9d1c
28 files changed
+384 -82

No files matched your search

+5
View File
@@ -4,5 +4,10 @@ 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 "${@}"