summaryrefslogtreecommitdiff
path: root/xmake/rules/mode/xmake.lua
diff options
context:
space:
mode:
authorstar9029 <[email protected]>2023-09-09 17:44:43 +0800
committerstar9029 <[email protected]>2023-09-09 17:44:43 +0800
commiteb5e31d06f3085bc86925b7ad19e9835458340d7 (patch)
tree26f58b994cdf67cd9faccd02527df0f042fde772 /xmake/rules/mode/xmake.lua
parent98aac22f41b987bb38d4e5f82da86276895b3a93 (diff)
fix find_tool
Diffstat (limited to 'xmake/rules/mode/xmake.lua')
-rw-r--r--xmake/rules/mode/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/mode/xmake.lua b/xmake/rules/mode/xmake.lua
index 3733805e8..790ce011f 100644
--- a/xmake/rules/mode/xmake.lua
+++ b/xmake/rules/mode/xmake.lua
@@ -213,7 +213,7 @@ rule("mode.asan")
local envs = target:toolchain("msvc"):runenvs()
local vscmd_ver = envs["VSCMD_VER"]
if vscmd_ver and vscmd_ver:startswith("17.7") then
- local cl = assert(import("lib.detect.find_tool").find_tool("cl", {envs = envs}), "cl not found!")
+ local cl = assert(import("lib.detect.find_tool")("cl", {envs = envs}), "cl not found!")
target:add("runenvs", "PATH", path.directory(cl.program))
end
end