From c0d12baa51bc8011e1d813868d8fa56c45ce3c31 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 30 Jun 2023 23:17:31 +0800 Subject: [PATCH] fix clang-scan-deps path #3873 --- xmake/rules/c++/modules/modules_support/clang.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 169d667f52c..3048ad1f422 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})