scripts build: properly detect if cross-compiling

This commit is contained in:
jgmdev
2022-10-30 19:05:17 -04:00
parent d89d1e6d98
commit a619054951
+3 -1
View File
@@ -107,9 +107,11 @@ main() {
portable="" portable=""
fi fi
if [[ $platform == "macos" && $arch == "arm64" ]]; then if [[ $CROSS_ARCH != "" ]]; then
if [[ $platform == "macos" && $CROSS_ARCH == "arm64" ]]; then
cross_file="--cross-file resources/macos/macos_arm64.conf" cross_file="--cross-file resources/macos/macos_arm64.conf"
fi fi
fi
rm -rf "${build_dir}" rm -rf "${build_dir}"