mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
build: consider x86_64 on aarch64 darwin to not be a cross-compile
This commit is contained in:
parent
370ec8bbe6
commit
b5f1d9edb0
@ -21,6 +21,14 @@ then
|
||||
TARGET_OS="${HOST_OS}"
|
||||
fi
|
||||
|
||||
# Darwin can cross compile on all architectures to all other supported
|
||||
# architectures without cross compilation consideration. For cross-compile
|
||||
# check, make sure HOST_ARCH is TARGET_ARCH for comparison.
|
||||
if [ "${TARGET_OS}" = "darwin" ]
|
||||
then
|
||||
HOST_ARCH="${TARGET_ARCH}"
|
||||
fi
|
||||
|
||||
if [ "${HOST_ARCH}" != "${TARGET_ARCH}" ] || [ "${HOST_OS}" != "${TARGET_OS}" ]
|
||||
then
|
||||
echo "1"
|
||||
|
Loading…
Reference in New Issue
Block a user