diff options
| author | ruki <[email protected]> | 2022-08-15 11:19:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-15 11:19:15 +0800 |
| commit | 4e4559e121c1ea1387874809fb448548dc0dba80 (patch) | |
| tree | a994abe7a9836df6afe1bd201cda2dd2864b9d99 /xmake/rules/c++/modules/modules_support/common.lua | |
| parent | 595a078ba33abd374cf900a07570222151caf605 (diff) | |
| parent | ff971cdfeb55701078e894c380939ed7146b5638 (diff) | |
Merge pull request #2673 from xmake-io/generator
improve generator for cxxmodules
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/common.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/common.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua index 39ad17f2e..aa7c0fb59 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,6 +137,7 @@ end -- this target contains module files? function contains_modules(target) + -- we can not use `"c++.build.modules.builder"`, because it contains sourcekind/cxx. local target_with_modules = target:sourcebatches()["c++.build.modules"] and true or false if not target_with_modules then for _, dep in ipairs(target:orderdeps()) do |
