From eef0da798d9f5fc404dd14e8b9639fc58c93c274 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Tue, 13 May 2025 12:01:26 +0200 Subject: Update target_triple.lua --- xmake/modules/core/tools/rustc/target_triple.lua | 6 +++--- 1 file 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 -- cgit v1.3.1