From a6190549517f657c5e6e4ec124c37f58ea968117 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Sun, 30 Oct 2022 19:05:17 -0400 Subject: [PATCH] scripts build: properly detect if cross-compiling --- scripts/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 0acf45ac..891a5a2c 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -107,8 +107,10 @@ main() { portable="" fi - if [[ $platform == "macos" && $arch == "arm64" ]]; then - cross_file="--cross-file resources/macos/macos_arm64.conf" + if [[ $CROSS_ARCH != "" ]]; then + if [[ $platform == "macos" && $CROSS_ARCH == "arm64" ]]; then + cross_file="--cross-file resources/macos/macos_arm64.conf" + fi fi rm -rf "${build_dir}"