diff options
| -rw-r--r-- | xmake/modules/core/tools/rustc/target_triple.lua | 6 |
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 |
