From e639c493025b5d6c5cbdbe588759d34ff8d772b4 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 1 Nov 2022 22:54:09 +0800 Subject: disable ccache for c++modules --- xmake/rules/c++/modules/xmake.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xmake/rules/c++/modules/xmake.lua') 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) -- cgit v1.3.1