scripts build: properly detect if cross-compiling
This commit is contained in:
+4
-2
@@ -107,8 +107,10 @@ main() {
|
|||||||
portable=""
|
portable=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $platform == "macos" && $arch == "arm64" ]]; then
|
if [[ $CROSS_ARCH != "" ]]; then
|
||||||
cross_file="--cross-file resources/macos/macos_arm64.conf"
|
if [[ $platform == "macos" && $CROSS_ARCH == "arm64" ]]; then
|
||||||
|
cross_file="--cross-file resources/macos/macos_arm64.conf"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf "${build_dir}"
|
rm -rf "${build_dir}"
|
||||||
|
|||||||
Reference in New Issue
Block a user