diff options
| author | SirLynix <[email protected]> | 2025-05-10 07:54:18 +0200 |
|---|---|---|
| committer | SirLynix <[email protected]> | 2025-05-10 07:54:18 +0200 |
| commit | e0b4e4e69b752593f90e03ee1e857092143c712b (patch) | |
| tree | b764f7dc312890d96341c54b323eb73822f830d5 | |
| parent | 2f886d8133855895229d3ce958e17fbfa86d2bca (diff) | |
rustc/target_triple: Handle msys and cross
| -rw-r--r-- | xmake/modules/core/tools/rustc/target_triple.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/rustc/target_triple.lua b/xmake/modules/core/tools/rustc/target_triple.lua index 3a83aed7e..ddbf052ea 100644 --- a/xmake/modules/core/tools/rustc/target_triple.lua +++ b/xmake/modules/core/tools/rustc/target_triple.lua @@ -45,9 +45,9 @@ end function _translate_plat(plat, arch, opt) if plat == "windows" then return "-pc-windows-msvc" - elseif plat == "mingw" then + elseif plat == "mingw" or plat == "msys" then return "-pc-windows-gnu" - elseif plat == "linux" then + elseif plat == "linux" or plat == "cross" then return "-unknown-linux-gnu" elseif plat == "macosx" then return "-apple-darwin" |
