From 22e37a1f4e93e58c08d2cffa5e79a6dc1e6588b0 Mon Sep 17 00:00:00 2001 From: star9029 Date: Wed, 20 Nov 2024 00:23:43 +0800 Subject: fix import --- xmake/toolchains/clang/xmake.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmake/toolchains/clang/xmake.lua b/xmake/toolchains/clang/xmake.lua index cf3b2e3f6..ea9406e5c 100644 --- a/xmake/toolchains/clang/xmake.lua +++ b/xmake/toolchains/clang/xmake.lua @@ -45,7 +45,8 @@ toolchain("clang" .. suffix) on_check(function (toolchain) if toolchain:is_plat("windows") then - local result = import("check")(toolchain, suffix) + local rootdir = path.join(path.directory(os.scriptdir()), "clang") + local result = import("check", {rootdir = rootdir})(toolchain, suffix) if result then return result end @@ -72,7 +73,8 @@ toolchain("clang" .. suffix) toolchain:add("runtimes", "MT", "MTd", "MD", "MDd") end if toolchain:is_plat("windows", "mingw") then - import("load")(toolchain, suffix) + local rootdir = path.join(path.directory(os.scriptdir()), "clang") + import("load", {rootdir = rootdir})(toolchain, suffix) end end) end -- cgit v1.3.1