summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index 6d0da85c2..5676dcb10 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -93,10 +93,7 @@ rule("c++.build.modules.builder")
local modules = common.generate_dependencies(target, sourcebatch, opt)
-- generate headerunits
- local headerunits_flags = common.generate_headerunits_for_batchcmds(target, batchcmds, sourcebatch, modules, opt)
- if headerunits_flags then
- target:add("cxxflags", headerunits_flags, {force = true, expand = false})
- end
+ common.generate_headerunits_for_batchcmds(target, batchcmds, sourcebatch, modules, opt)
-- build modules
common.build_modules_for_batchcmds(target, batchcmds, sourcebatch, modules, opt)