Skip to content

Commit

Permalink
improve incremental compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Feb 14, 2024
1 parent be329f0 commit 45b8fa3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function _get_edges(nodes, modules)
for _, node in ipairs(nodes) do
local module = modules[node]
if module.requires then
for required_name, _ in pairs(module.requires) do
for required_name, _ in table.orderpairs(module.requires) do
for _, required_node in ipairs(nodes) do
local name, _, _ = compiler_support.get_provided_module(modules[required_node])
if name and name == required_name then
Expand Down
2 changes: 0 additions & 2 deletions xmake/rules/c++/modules/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ rule("c++.build.modules.builder")

-- cull external modules objectfile
compiler_support.cull_objectfiles(target, modules, sourcebatch)
table.sort(sourcebatch.objectfiles)
else
sourcebatch.objectfiles = {}
end
Expand Down Expand Up @@ -183,7 +182,6 @@ rule("c++.build.modules.builder")

-- cull external modules objectfile
compiler_support.cull_objectfiles(target, modules, sourcebatch)
table.sort(sourcebatch.objectfiles)
else
-- avoid duplicate linking of object files of non-module programs
sourcebatch.objectfiles = {}
Expand Down

0 comments on commit 45b8fa3

Please sign in to comment.