diff options
| author | ruki <[email protected]> | 2022-11-01 22:54:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-01 22:54:09 +0800 |
| commit | e639c493025b5d6c5cbdbe588759d34ff8d772b4 (patch) | |
| tree | 1e91823aee729fb798f61e38480a2ad61a580e06 /xmake/rules/c++/modules/xmake.lua | |
| parent | 055c7aa757886af0faa87c21e407495ead4c066e (diff) | |
disable ccache for c++modules
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) |
