summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiangang Song <[email protected]>2025-09-23 14:00:51 -0700
committerGitHub <[email protected]>2025-09-23 14:00:51 -0700
commit9d7059c765ba394dee3d48b7298c9388a998f9a1 (patch)
tree336e2a33c0c0d12fec0f4defd1a0146cffcefa5a
parent964d19fc99ab8ee4ff983ee6bf33685fc8b5117d (diff)
Fix finding clang_scan_deps
-rw-r--r--xmake/rules/c++/modules/clang/support.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/clang/support.lua b/xmake/rules/c++/modules/clang/support.lua
index c1684a1b9..1aae7a2dc 100644
--- a/xmake/rules/c++/modules/clang/support.lua
+++ b/xmake/rules/c++/modules/clang/support.lua
@@ -241,7 +241,7 @@ function get_clang_scan_deps(target)
basename = "clang"
end
local extension = path.extension(program)
- program = (basename:rtrim("+"):gsub("clang", "clang-scan-deps")) .. extension
+ program = (basename:gsub("%+%+", ""):gsub("clang", "clang-scan-deps")) .. extension
if dir and dir ~= "." and os.isdir(dir) then
program = path.join(dir, program)
end