diff options
| author | ruki <[email protected]> | 2025-04-05 23:30:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:57 +0800 |
| commit | 8f6a3130eff588abda27b22fa86e936b6500f50c (patch) | |
| tree | 7f36c364fab12563b66e5216375a7db9beb9a027 /xmake/rules/c++/modules/xmake.lua | |
| parent | ca185a3cc835182a9c290bc53bfec505abd60833 (diff) | |
fix headerunit
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 42eab0c19..5f17e2099 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -112,15 +112,8 @@ rule("c++.build.modules.builder") local build_objectfiles, link_objectfiles = dependency_scanner.sort_modules_by_dependencies(target, sourcebatch.objectfiles, modules) sourcebatch.objectfiles = build_objectfiles - -- build modules and headerunits, and we need to build headerunits first - if jobgraph.add_orders then - builder.build_modules_for_jobgraph(target, jobgraph, sourcebatch, modules, opt) - builder.build_headerunits_for_jobgraph(target, jobgraph, sourcebatch, modules, opt) - else -- deprecated - builder.build_modules_for_batchjobs(target, jobgraph, sourcebatch, modules, opt) - builder.build_headerunits_for_batchjobs(target, jobgraph, sourcebatch, modules, opt) - end - + -- build modules and headerunits + builder.build_modules_and_headerunits(target, jobgraph, sourcebatch, modules, opt) sourcebatch.objectfiles = link_objectfiles else sourcebatch.objectfiles = {} |
