summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-06-21 22:35:16 +0800
committerruki <[email protected]>2023-06-21 22:35:16 +0800
commit12d433609572d2ad4c8eb06a04556a7f4adb895c (patch)
tree0f23def13f54dfda932485e593086ddb5913afa7
parent960b46e798d5a4977af7e5f0e74b61a59ad61846 (diff)
improve to parse triplet #3869
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 23df3f02c..c5c273156 100755
--- a/configure
+++ b/configure
@@ -2739,7 +2739,8 @@ done
#
# parse triplet
-# e.g. i686-linux-gnu, aarch64-apple-darwin, x86_64-w64-mingw32
+# https://github.com/xmake-io/xmake/issues/3869
+# e.g. i686-linux-gnu, aarch64-apple-darwin, x86_64-w64-mingw32, i686-redhat-linux-gnu
_parse_triplet() {
local triplet="${1}"
string_split "${triplet}" "-"
@@ -2775,6 +2776,7 @@ _get_plat_from_vendor_os() {
fi
;;
w64) _ret="mingw";;
+ *) _ret="${os}";;
esac
}