summaryrefslogtreecommitdiff
path: root/xmake/toolchains/rust/xmake.lua
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2025-05-08 09:52:18 +0200
committerGitHub <[email protected]>2025-05-08 09:52:18 +0200
commit0105e6da7e9589e1ac0ae17597accbd4e0543ecc (patch)
tree5e2226e59b0b33c96e6ad2cccc60136bfc0cf120 /xmake/toolchains/rust/xmake.lua
parentc05d4bf0adc8a4d8a320b960d6383832775f13de (diff)
Update xmake.lua
Diffstat (limited to 'xmake/toolchains/rust/xmake.lua')
-rw-r--r--xmake/toolchains/rust/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/toolchains/rust/xmake.lua b/xmake/toolchains/rust/xmake.lua
index 628c55727..184cb6769 100644
--- a/xmake/toolchains/rust/xmake.lua
+++ b/xmake/toolchains/rust/xmake.lua
@@ -28,12 +28,14 @@ toolchain("rust")
set_toolset("rcar", "$(env RC)", "rustc")
on_load(function (toolchain)
+ import("private.tools.rust.target_triple")
+
local opt = {}
if toolchain:config("appledev") == "simulator" then
opt.apple_sim = true
end
- local target = import("private.tools.rust.target_triple")(toolchain:plat(), toolchain:arch(), opt)
+ local target = target_triple(toolchain:plat(), toolchain:arch(), opt)
if target then
toolchain:add("rcflags", "--verbose")
toolchain:add("rcflags", "--target=" .. target)