fix arm64 mingw packaging (#339)
This commit is contained in:
parent
1872241cb1
commit
54599d7c30
|
@ -11,7 +11,9 @@ function fn_print_help() {
|
||||||
(MINGW32, MINGW64, UCRT64, CLANG32, CLANG64, CLANGARM64)
|
(MINGW32, MINGW64, UCRT64, CLANG32, CLANG64, CLANGARM64)
|
||||||
MUST be used before other options.
|
MUST be used before other options.
|
||||||
-c, --clean Clean build and package directories.
|
-c, --clean Clean build and package directories.
|
||||||
--mingw Build mingw integrated installer.
|
--mingw Alias for --mingw32 (x86 app) or --mingw64 (x64 app).
|
||||||
|
--mingw32 Build mingw32 integrated compiler.
|
||||||
|
--mingw64 Build mingw64 integrated compiler.
|
||||||
-nd, --no-deps Skip dependency check.
|
-nd, --no-deps Skip dependency check.
|
||||||
-t, --target-dir <dir> Set target directory for the packages."
|
-t, --target-dir <dir> Set target directory for the packages."
|
||||||
}
|
}
|
||||||
|
@ -77,13 +79,31 @@ while [[ $# -gt 0 ]]; do
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--mingw)
|
--mingw)
|
||||||
if [[ "${NSIS_ARCH}" == "x86" ]]; then
|
case "${NSIS_ARCH}" in
|
||||||
compilers+=("mingw32")
|
x86)
|
||||||
COMPILER_MINGW32=1
|
compilers+=("mingw32")
|
||||||
else
|
COMPILER_MINGW32=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
x64)
|
||||||
compilers+=("mingw64")
|
compilers+=("mingw64")
|
||||||
COMPILER_MINGW64=1
|
COMPILER_MINGW64=1
|
||||||
fi
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "ambiguous --mingw, please specify --mingw32 or --mingw64"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
--mingw32)
|
||||||
|
compilers+=("mingw32")
|
||||||
|
COMPILER_MINGW32=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--mingw64)
|
||||||
|
compilers+=("mingw64")
|
||||||
|
COMPILER_MINGW64=1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-nd|--no-deps)
|
-nd|--no-deps)
|
||||||
|
|
Loading…
Reference in New Issue