diff options
| author | Arthur LAURENT <[email protected]> | 2025-04-23 16:37:21 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-04-23 16:37:21 +0200 |
| commit | d60e9b244f091593232fffae837ec0504c51f032 (patch) | |
| tree | a83c9107e42a5f9113ec19eb87d8e28951bbf97d /xmake/rules/c++/modules | |
| parent | 4333d588d626270677cf5de375437498a0fb68e4 (diff) | |
(C++ modules support) assert when unity_build is enabled
Diffstat (limited to 'xmake/rules/c++/modules')
| -rw-r--r-- | xmake/rules/c++/modules/config.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/config.lua b/xmake/rules/c++/modules/config.lua index a39e4c4e0..90d34cfdc 100644 --- a/xmake/rules/c++/modules/config.lua +++ b/xmake/rules/c++/modules/config.lua @@ -25,6 +25,10 @@ function main(target) -- 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 support.contains_modules(target) then + + -- unity build can't work with modules + assert(not target:rule("c++.unity_build"), "C++ unity build is not compatible with C++ modules") + -- @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. -- |
