summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-15 23:57:07 +0800
committerruki <[email protected]>2021-10-15 23:57:07 +0800
commitd71f50b60d8872c1ab5fc92b21d9f41fe93983b3 (patch)
treef26135cff47a67a688fc818ff3b5b6b7c6786b9b /xmake/rules/c++/modules/xmake.lua
parent091e754eb4d5328385fed59d5c4f92e09355ff51 (diff)
improve to load moduledeps
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
-rw-r--r--xmake/rules/c++/modules/xmake.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua
index ad36226eb..9018f5e2d 100644
--- a/xmake/rules/c++/modules/xmake.lua
+++ b/xmake/rules/c++/modules/xmake.lua
@@ -21,15 +21,6 @@
-- define rule: c++.build.modules
rule("c++.build.modules")
set_extensions(".mpp", ".mxx", ".cppm", ".ixx")
- before_build(function (target, opt)
- local sourcebatches = target:sourcebatches()
- if sourcebatches then
- local sourcebatch = sourcebatches["c++.build.modules"]
- if sourcebatch then
- import("build_modules.module_parser").generate(target, sourcebatch, opt)
- end
- end
- end)
before_build_files(function (target, batchjobs, sourcebatch, opt)
-- we disable to build across targets in parallel, because the source files may depend on other target modules
-- @note we cannot set it in on_load, because it will affect all c++ projects