summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-23 23:13:47 +0800
committerruki <[email protected]>2022-12-23 23:13:47 +0800
commit02c5eb0a748cad50253d325ee049ccce769c3566 (patch)
tree799a4409555e75dbc3ac20849f0ee8af0e93d52c
parentf6efbdaebaa40d1d2ca7880d5c3962124e5cb73e (diff)
improve arch
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 7cd8d3ab8..5439121aa 100755
--- a/configure
+++ b/configure
@@ -603,6 +603,9 @@ 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