diff options
| -rw-r--r-- | xmake/rules/c++/modules/clang/support.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/clang/support.lua b/xmake/rules/c++/modules/clang/support.lua index 11c2f9a67..faebd5213 100644 --- a/xmake/rules/c++/modules/clang/support.lua +++ b/xmake/rules/c++/modules/clang/support.lua @@ -228,6 +228,10 @@ function get_clang_scan_deps(target) program = path.join(dir, program) end local result = find_tool("clang-scan-deps", {program = program, version = true}) + if not result then + -- find a system wide alternative + result = find_tool("clang-scan-deps", {version = true}) + end if result then clang_scan_deps = result.program end |
