From eb5e31d06f3085bc86925b7ad19e9835458340d7 Mon Sep 17 00:00:00 2001 From: star9029 Date: Sat, 9 Sep 2023 17:44:43 +0800 Subject: fix find_tool --- xmake/rules/mode/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1