summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/rustc/target_triple.lua4
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"