summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/builder.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-31 14:15:04 +0100
committerArthur LAURENT <[email protected]>2024-01-31 14:15:36 +0100
commit15f2678a507c933f1f1456a496cb31e0373699f2 (patch)
treec8c678bfe1eb58ffb731d97081f2cd0963d21e1c /xmake/rules/c++/modules/modules_support/builder.lua
parente339cb5978255aaf2f67190221530ee1587c0be8 (diff)
use table.orderpair to ensure dependency order stay the same
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/builder.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/builder.lua b/xmake/rules/c++/modules/modules_support/builder.lua
index db986b4ff..9f695cede 100644
--- a/xmake/rules/c++/modules/modules_support/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/builder.lua
@@ -101,7 +101,7 @@ function _should_build(target, sourcefile, bmifile, opt)
-- force rebuild a module if any of its module dependency is rebuilt
local requires = opt.requires
if requires then
- for required, _ in pairs(requires) do
+ for required, _ in table.orderpairs(requires) do
local m = get_from_target_mapper(target, required)
if m then
local rebuild = compiler_support.memcache():get2("should_build_in" .. target:name(), m.key)