diff options
| author | ruki <[email protected]> | 2022-11-01 23:35:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-01 23:35:02 +0800 |
| commit | 1912c580ec4f817ef40aa44dc893cbf4c1d8db8e (patch) | |
| tree | 47d5ff5309a5ed549c9da407189a2001dd3c5575 /xmake/rules/c++/modules/xmake.lua | |
| parent | e3f66afa1533661eda37f934357623134dd0e467 (diff) | |
| parent | 3abe482e186a3851f9349d5011e93d8c529de2d8 (diff) | |
Merge pull request #3001 from xmake-io/modules
Incremental compilation support for modules #3000
Diffstat (limited to 'xmake/rules/c++/modules/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/modules/xmake.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/xmake.lua b/xmake/rules/c++/modules/xmake.lua index 4a7193710..5c90cd3ea 100644 --- a/xmake/rules/c++/modules/xmake.lua +++ b/xmake/rules/c++/modules/xmake.lua @@ -36,6 +36,14 @@ rule("c++.build.modules") -- maybe we will have a more fine-grained configuration strategy to disable it in the future. target:set("policy", "build.across_targets_in_parallel", false) + -- disable ccache for this target + -- + -- Caching can affect incremental compilation, for example + -- by interfering with the results of depfile generation for msvc. + -- + -- @see https://github.com/xmake-io/xmake/issues/3000 + target:set("policy", "build.ccache", false) + -- get modules support local modules_support = common.modules_support(target) |
