summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2025-05-13 12:01:26 +0200
committerGitHub <[email protected]>2025-05-13 12:01:26 +0200
commiteef0da798d9f5fc404dd14e8b9639fc58c93c274 (patch)
tree5eab55663f05bce2e6cf4e000378760c8eebfcb3
parentcee0474d82ff8d524c6a8265b81ace41225b820f (diff)
Update target_triple.lua
-rw-r--r--xmake/modules/core/tools/rustc/target_triple.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/rustc/target_triple.lua b/xmake/modules/core/tools/rustc/target_triple.lua
index 6064b041c..f15f0da11 100644
--- a/xmake/modules/core/tools/rustc/target_triple.lua
+++ b/xmake/modules/core/tools/rustc/target_triple.lua
@@ -50,9 +50,9 @@ function _translate_plat(plat, arch, opt)
elseif plat == "linux" then
return "-unknown-linux-gnu"
elseif plat == "cross" then
- local system = opt and opt.system or "-unknown-linux"
- local abi = opt and opt.abi or "-gnu"
- return system .. abi
+ local system = opt and opt.system or "unknown-linux"
+ local abi = opt and opt.abi or "gnu"
+ return "-" .. system .. "-" .. abi
elseif plat == "macosx" then
return "-apple-darwin"
elseif plat == "android" then