Skip to content

Commit

Permalink
fix clang-scan-deps path #3873
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jun 30, 2023
1 parent 74aa851 commit c0d12ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/rules/c++/modules/modules_support/clang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function _get_clang_scan_deps(target)
local basename = path.basename(program)
local extension = path.extension(program)
program = (basename:gsub("clang", "clang-scan-deps")) .. extension
if os.isdir(dir) then
if dir and dir ~= "." and os.isdir(dir) then
program = path.join(dir, program)
end
local result = find_tool("clang-scan-deps", {program = program, version = true})
Expand Down

0 comments on commit c0d12ba

Please sign in to comment.