diff options
| author | ruki <[email protected]> | 2022-08-16 22:48:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-16 22:48:20 +0800 |
| commit | 61c9bf5fe8ec9f2607c0cbd15983c3dd2054563e (patch) | |
| tree | 8adc1be801ce268e275e62c9c2c1a87eb01ac611 /xmake/rules/c++/modules/xmake.lua | |
| parent | e35342220927bc044f4e07c00713d904a3618b08 (diff) | |
revert parallel build
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index feb53785d..3ef960d7a 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -27,8 +27,14 @@ rule("c++.build.modules") on_config(function (target) import("modules_support.common") + -- we disable to build across targets in parallel, because the source files may depend on other target modules -- @see https://github.com/xmake-io/xmake/issues/1858 if common.contains_modules(target) then + -- @note this will cause cross-parallel builds to be disabled for all sub-dependent targets, + -- even if some sub-targets do not contain C++ modules. + -- + -- maybe we will have a more fine-grained configuration strategy to disable it in the future. + target:set("policy", "build.across_targets_in_parallel", false) -- get modules support local modules_support = common.modules_support(target) |
