From 0105e6da7e9589e1ac0ae17597accbd4e0543ecc Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Thu, 8 May 2025 09:52:18 +0200 Subject: Update xmake.lua --- xmake/toolchains/rust/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.3.1