summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
authorArthur Laurent <[email protected]>2024-02-02 18:30:05 +0100
committerGitHub <[email protected]>2024-02-02 18:30:05 +0100
commit05deea2df8d17cfae17694b7e5cc78213c068ea4 (patch)
tree8b86aab514f3b36826068efcf7de3571dcd4bd71 /xmake/rules/c++/modules/xmake.lua
parentaedc8fa8b17560952782e8409fb41937fa781486 (diff)
parent48be7cd276d22c5cc16058fe328741c7ebd471d1 (diff)
Merge branch 'modules' into optimise-dag
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 13f248880..ecb79f65b 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -88,11 +88,11 @@ rule("c++.build.modules.builder")
end
end
+ opt.batchjobs = true
+
compiler_support.patch_sourcebatch(target, sourcebatch, opt)
local modules = dependency_scanner.get_module_dependencies(target, sourcebatch, opt)
- opt.batchjobs = true
-
-- build modules
builder.build_modules_for_batchjobs(target, batchjobs, sourcebatch, modules, opt)
@@ -135,11 +135,11 @@ rule("c++.build.modules.builder")
end
end
+ opt.batchjobs = false
+
compiler_support.patch_sourcebatch(target, sourcebatch, opt)
local modules = dependency_scanner.get_module_dependencies(target, sourcebatch, opt)
- opt.batchjobs = false
-
-- build headerunits
builder.build_headerunits_for_batchcmds(target, batchcmds, sourcebatch, modules, opt)