mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
krata: rework cross-compilation
This commit is contained in:
27 files changed
+321
-131
No files matched your search
Executable
+15
@@ -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
|
||||
Reference in new issue
Block a user