diff options
| author | ruki <[email protected]> | 2025-01-25 00:51:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-25 00:51:41 +0800 |
| commit | 4758d5fb50863ebefc7c7cdb3d3bf3670843cd82 (patch) | |
| tree | b458aa3999b78212ba5bc06bb6de15053389bcd3 /xmake/modules/lib/detect/find_tool.lua | |
| parent | 512fe920b09fed3611a41227ba09ad92c40bc6b3 (diff) | |
get toolchain dirs
Diffstat (limited to 'xmake/modules/lib/detect/find_tool.lua')
| -rw-r--r-- | xmake/modules/lib/detect/find_tool.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/find_tool.lua b/xmake/modules/lib/detect/find_tool.lua index e761cb9a7..8b5892483 100644 --- a/xmake/modules/lib/detect/find_tool.lua +++ b/xmake/modules/lib/detect/find_tool.lua @@ -23,9 +23,13 @@ import("lib.detect.find_program") import("lib.detect.find_programver") import("lib.detect.find_toolname") import("core.base.semver") +import("core.tool.toolchain") -- find tool from modules function _find_from_modules(name, opt) + -- TODO + print(toolchain.directories()) + local find_tool = import("detect.tools.find_" .. name, {try = true}) if find_tool then local program, version, toolname = find_tool(opt) |
