summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-23 23:16:13 +0800
committerruki <[email protected]>2022-12-23 23:16:13 +0800
commitf2f69542ea67f22f2d62fd43478e26853eca02b8 (patch)
tree5904c4ba1b291485643fffe6fe41c0a0bb9280bc
parent02c5eb0a748cad50253d325ee049ccce769c3566 (diff)
improve arch
-rwxr-xr-xconfigure9
1 files 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