summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 56ec15343..13f248880 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -82,7 +82,7 @@ rule("c++.build.modules.builder")
local package_modules_data = dependency_scanner.get_all_packages_modules(target, opt)
if package_modules_data then
-- append to sourcebatch
- for _, package_module_data in pairs(package_modules_data) do
+ for _, package_module_data in table.orderpairs(package_modules_data) do
table.insert(sourcebatch.sourcefiles, package_module_data.file)
target:fileconfig_add(package_module_data.file, {external = true, defines = package_module_data.metadata.defines})
end
@@ -129,7 +129,7 @@ rule("c++.build.modules.builder")
local package_modules_data = dependency_scanner.get_all_packages_modules(target, opt)
if package_modules_data then
-- append to sourcebatch
- for _, package_module_data in pairs(package_modules_data) do
+ for _, package_module_data in table.orderpairs(package_modules_data) do
table.insert(sourcebatch.sourcefiles, package_module_data.file)
target:fileconfig_add(package_module_data.file, {external = true, defines = package_module_data.metadata.defines})
end