Skip to content

Commit

Permalink
add a warning when a module is getting culled
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Jul 21, 2024
1 parent 0314af9 commit 17bf826
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ function sort_modules_by_dependencies(target, objectfiles, modules)
local dont_cull = fileconfig and fileconfig.cull ~= nil and not fileconfig.cull
if not provide or public or dont_cull then
table.insert(result, objectfile)
else
wprint("%s has been culled because it's not consumed nor a public module (add_files(\"xxx.cppm\", {public = true}))", cppfile)
end
else
table.insert(result, objectfile)
Expand Down

0 comments on commit 17bf826

Please sign in to comment.