diff options
| author | ruki <[email protected]> | 2023-06-30 23:17:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-30 23:17:31 +0800 |
| commit | c0d12baa51bc8011e1d813868d8fa56c45ce3c31 (patch) | |
| tree | 2d563908b02f1111130befd16e58f13a75922d9a | |
| parent | 74aa8510251eb3a325789ab25bb119f3481171d7 (diff) | |
fix clang-scan-deps path #3873
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 169d667f5..3048ad1f4 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -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}) |
