summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/clang.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-02-15 18:57:29 +0100
committerArthur LAURENT <[email protected]>2023-02-15 18:57:29 +0100
commit46e033b7beaba56ed7dba4587ab98992b1d9f646 (patch)
tree27e2f026291676d14515cce50544608ee9cbc9ac /xmake/rules/c++/modules/modules_support/clang.lua
parent0765350a8935fe493e0846543081dc29463ea953 (diff)
fix compflags for clang-scan module dependencies scan
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua2
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 3d45fd43f..40c91981e 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -303,7 +303,7 @@ function generate_dependencies(target, sourcebatch, opt)
if has_clangscandepssupport(target) and not target:policy("build.c++.clang.fallbackscanner") then
local clangscandeps = _get_clang_scan_deps(target)
local compinst = target:compiler("cxx")
- local compflags = compinst:compflags({sourcefile = file, target = target})
+ local compflags = compinst:compflags({sourcefile = sourcefile, target = target})
local flags = table.join({"--format=p1689", "--", compinst:program(), "-x", "c++", "-c", sourcefile, "-o", target:objectfile(sourcefile)}, compflags)
vprint(table.concat(table.join(clangscandeps, flags), " "))