diff options
| author | ruki <[email protected]> | 2023-06-21 22:35:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-21 22:35:16 +0800 |
| commit | 12d433609572d2ad4c8eb06a04556a7f4adb895c (patch) | |
| tree | 0f23def13f54dfda932485e593086ddb5913afa7 | |
| parent | 960b46e798d5a4977af7e5f0e74b61a59ad61846 (diff) | |
improve to parse triplet #3869
| -rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |
