浏览代码

improve arch

ruki 2 年之前
父节点
当前提交
0f65c61d6d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      configure

+ 3 - 0
configure

@@ -603,6 +603,9 @@ is_host() {
 
 
 # detect host architecture
 # detect host architecture
 os_arch=`uname -m | tr '[A-Z]' '[a-z]'`
 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
 if test_eq "${os_arch}" "i686"; then
     os_arch="i386"
     os_arch="i386"
 fi
 fi