Browse Source

scripts build: properly detect if cross-compiling

pull/1169/head
jgmdev 3 years ago
parent
commit
a619054951
  1. 6
      scripts/build.sh

6
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}"

Loading…
Cancel
Save