krata: rework cross-compilation

This commit is contained in:
alex committed 2024-03-21 21:31:10 +00:00
1 parent 332a1bba26
commit 0191e5b2c1
27 files changed
+321 -131

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -e
TOOLS_DIR="$(dirname "${0}")"
RUST_TARGET="$("${TOOLS_DIR}/target.sh")"
TARGET_ARCH="$(echo "${RUST_TARGET}" | awk -F '-' '{print $1}')"
HOST_ARCH="$(uname -m)"
if [ "${HOST_ARCH}" != "${TARGET_ARCH}" ]
then
echo "1"
else
echo "0"
fi