summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-02 22:13:27 +0800
committerGitHub <[email protected]>2024-02-02 22:13:27 +0800
commitc630a347fb24640a55fd632608ff4e0dcdcf1d0b (patch)
tree3869cf3e297cb272b1b44b3a4b74b85400e841e4 /xmake/rules/c++/modules/xmake.lua
parente449836c75d31664d14ad237c65d8416447bbf87 (diff)
parentb4d3167f7f43263ac48adc9401469065944690d0 (diff)
Merge pull request #4678 from Arthapz/parallelise-dependency-scanning
parallelise dependency scanning
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)