diff options
| author | ruki <[email protected]> | 2022-12-23 23:16:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-23 23:16:13 +0800 |
| commit | f2f69542ea67f22f2d62fd43478e26853eca02b8 (patch) | |
| tree | 5904c4ba1b291485643fffe6fe41c0a0bb9280bc | |
| parent | 02c5eb0a748cad50253d325ee049ccce769c3566 (diff) | |
improve arch
| -rwxr-xr-x | configure | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |
