diff options
| author | ruki <[email protected]> | 2022-08-27 22:38:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-27 22:38:55 +0800 |
| commit | 21ef485f37c1e1901914f8419b252715713cc247 (patch) | |
| tree | 99955e20962f2c6242bbbe58022e9da47ce8c524 /xmake/rules/c++/modules/xmake.lua | |
| parent | c63f962b4369cb1d5c7ca24bfbe3031a831e9e77 (diff) | |
fix module batch group
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 8a05ff0e0..387534fe0 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -52,7 +52,6 @@ rule("c++.build.modules.builder") set_sourcekinds("cxx") set_extensions(".mpp", ".mxx", ".cppm", ".ixx") - -- build modules -- parallel build support to accelerate `xmake build` to build modules before_build_files(function(target, batchjobs, sourcebatch, opt) if target:data("cxx.has_modules") then @@ -65,7 +64,7 @@ rule("c++.build.modules.builder") -- generate headerunits and we need do it before building modules opt.rootjob = batchjobs:group_leave() or opt.rootjob - batchjobs:group_enter(target:name() .. "/generate_headerunits") + batchjobs:group_enter(target:name() .. "/generate_headerunits", {rootjob = opt.rootjob}) common.generate_headerunits_for_batchjobs(target, batchjobs, sourcebatch, modules, opt) else -- avoid duplicate linking of object files of non-module programs |
