diff options
| author | ruki <[email protected]> | 2024-02-02 22:52:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-02 22:52:44 +0800 |
| commit | a204e49f7d3d39e27e621b3c5eb241c0021497a5 (patch) | |
| tree | f22e5037f5bbfcba0cc7ae730c99577c9ef9b011 /xmake/rules/c++/modules/xmake.lua | |
| parent | b81eed59a532fdb69f8ef8533cf5b9ae22c381d8 (diff) | |
format some codes
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 4 |
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 |
