From 12d433609572d2ad4c8eb06a04556a7f4adb895c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 21 Jun 2023 22:35:16 +0800 Subject: improve to parse triplet #3869 --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- cgit v1.3.1