From e35342220927bc044f4e07c00713d904a3618b08 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 16 Aug 2022 22:41:55 +0800 Subject: enable full parallel build for modules --- xmake/rules/c++/modules/xmake.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 3ef960d7a..feb53785d 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -27,14 +27,8 @@ 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) -- cgit v1.3.1