diff options
| -rw-r--r-- | xmake/modules/private/cache/build_cache.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua index 24124417c..27e4cee7c 100644 --- a/xmake/modules/private/cache/build_cache.lua +++ b/xmake/modules/private/cache/build_cache.lua @@ -63,6 +63,12 @@ function is_enabled(target) result = policy end end + -- disable ccache for msvc, because cl.exe preprocessor is too slower + -- @see https://github.com/xmake-io/xmake/issues/3532 + if result == nil and is_host("windows") and + target and target.has_tool and target:has_tool("cxx", "cl") then + result = false + end if result == nil then result = config.get("ccache") end |
