diff options
| author | star9029 <[email protected]> | 2024-11-20 00:23:43 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2024-11-20 00:23:43 +0800 |
| commit | 22e37a1f4e93e58c08d2cffa5e79a6dc1e6588b0 (patch) | |
| tree | a4138f72d71d41561653a94bb308d0152f4a2c92 | |
| parent | 637b2c0b46bac9edad35a008f6f191e63f6acc7d (diff) | |
fix import
| -rw-r--r-- | xmake/toolchains/clang/xmake.lua | 6 |
1 files 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 |
