diff options
| author | ruki <[email protected]> | 2022-08-14 10:58:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-14 10:58:07 +0800 |
| commit | 63bdc1bfaff58ba837e325574c6aa5a8151c8ba8 (patch) | |
| tree | 5ee136f56835f0e1b746a820c9286da8fbb6bf1b | |
| parent | ceee3b9f38385d3093aba79852a10f8affe6f0b6 (diff) | |
remove unused code
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/common.lua | 5 | ||||
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua index 39ad17f2e..0bd1e20d8 100644 --- a/xmake/rules/c++/modules/modules_support/common.lua +++ b/xmake/rules/c++/modules/modules_support/common.lua @@ -88,7 +88,6 @@ end -- patch sourcebatch function patch_sourcebatch(target, sourcebatch) - local cachedir = modules_cachedir(target) sourcebatch.sourcekind = "cxx" sourcebatch.objectfiles = {} sourcebatch.dependfiles = {} @@ -138,11 +137,11 @@ end -- this target contains module files? function contains_modules(target) - local target_with_modules = target:sourcebatches()["c++.build.modules"] and true or false + local target_with_modules = target:sourcebatches()["c++.build.modules.builder"] and true or false if not target_with_modules then for _, dep in ipairs(target:orderdeps()) do local sourcebatches = dep:sourcebatches() - if sourcebatches["c++.build.modules"] then + if sourcebatches["c++.build.modules.builder"] then target_with_modules = true break end diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 276566a27..ae81ebc25 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -20,8 +20,6 @@ -- define rule: c++.build.modules rule("c++.build.modules") - set_extensions(".mpp", ".mxx", ".cppm", ".ixx") - add_deps("c++.build.modules.builder") add_deps("c++.build.modules.install") |
