From adefc665f025751b078238cf4a07ae8751f4b83b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 21 May 2025 21:13:00 +0800 Subject: fix target for cross --- xmake/toolchains/llvm/xmake.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/toolchains/llvm/xmake.lua b/xmake/toolchains/llvm/xmake.lua index dbc79e244..0cd42f525 100644 --- a/xmake/toolchains/llvm/xmake.lua +++ b/xmake/toolchains/llvm/xmake.lua @@ -67,8 +67,7 @@ toolchain("llvm") end end elseif toolchain:is_plat("cross") then - local cross = toolchain:cross():gsub("(.*)%-$", "%1") - target = "--target=" .. cross + target = toolchain:cross():gsub("(.*)%-$", "%1") end local target_flags if target then -- cgit v1.3.1