Skip to content

Commit

Permalink
fix sourcebatches #5584
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 9, 2024
1 parent f8a5e10 commit d2f67fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/private/check/checkers/clang/tidy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end

-- add sourcefiles in target
function _add_target_files(sourcefiles, target)
for _, sourcebatch in pairs(sourcebatches) do
for _, sourcebatch in pairs(target:sourcebatches()) do
-- we can only use rulename to filter them because sourcekind may be bound to multiple rules
local rulename = sourcebatch.rulename
if rulename == "c.build" or rulename == "c++.build"
Expand Down

0 comments on commit d2f67fb

Please sign in to comment.