summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-31 14:10:59 +0100
committerArthur LAURENT <[email protected]>2024-01-31 14:10:59 +0100
commit2465d8a3b74f368ead2e7300e1eccc735125e5b4 (patch)
tree85628f1cf3dc960a7c31ec78fb0503fc6aa95f51 /xmake/rules/c++/modules/modules_support/msvc
parenta5fb58f0db2bea436f89df71b8b4b3b14af6d5b9 (diff)
use table.orderpair to ensure dependency order stay the same
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc/builder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc/builder.lua b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
index 13e40830d..7fc25a0a0 100644
--- a/xmake/rules/c++/modules/modules_support/msvc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
@@ -118,7 +118,7 @@ function _get_requiresflags(target, module, opt)
or compiler_support.localcache():get2(cachekey, "requiresflags")
if not requiresflags or (opt and opt.regenerate) then
local deps_flags = {}
- for required, _ in pairs(module.requires) do
+ for required, _ in table.orderpairs(module.requires) do
local dep_module = get_from_target_mapper(target, required)
assert(dep_module, "module dependency %s required for %s not found <%s>", required, name, target:name())