From f2f69542ea67f22f2d62fd43478e26853eca02b8 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 23 Dec 2022 23:16:13 +0800 Subject: improve arch --- configure | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 5439121aa..59d9d3a05 100755 --- a/configure +++ b/configure @@ -603,9 +603,6 @@ is_host() { # detect host architecture os_arch=`uname -m | tr '[A-Z]' '[a-z]'` -if is_host "msys" && test_nz "${MSYSTEM_CARCH}"; then - os_arch="${MSYSTEM_CARCH}" -fi if test_eq "${os_arch}" "i686"; then os_arch="i386" fi @@ -618,6 +615,12 @@ elif is_host "freebsd"; then _target_plat_default="bsd" fi _target_arch_default=${os_arch} +if is_host "msys" && test_nz "${MSYSTEM_CARCH}"; then + _target_arch_default="${MSYSTEM_CARCH}" +fi +if test_eq "${_target_arch_default}" "i686"; then + _target_arch_default="i386" +fi _target_mode_default="release" # set the default project generator and build program -- cgit v1.3.1