From 69db6466018292f9eadc914bf374096a4028c678 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 15 Oct 2025 20:16:14 +0200 Subject: fix(C++ modules) if toolchain clang-scan-deps is not installed, fallback to system wide clang-scan-deps if available --- xmake/rules/c++/modules/clang/support.lua | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.3.1