visual-studio Visual Studio 有“ccache”吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1860331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:17:27  来源:igfitidea点击:

Is there a 'ccache' for Visual Studio?

visual-studiobuildccache

提问by amit

I am aware that sconsimplements the functionality of ccache, but I am stuck with another build system.

我知道scons实现了 的功能ccache,但我坚持使用另一个构建系统。

I also know there is a gocacheproject on SourceForge that aims to implement ccache-like functionality for other compilers, but it seems not complete.

我也知道gocacheSourceForge 上有一个项目旨在ccache为其他编译器实现类似功能,但它似乎不完整。

回答by Frerich Raabe

A shameless plug, but I wrote a Python script which attempts to work just like ccache, except that it can wrap MSVC. See https://github.com/frerich/clcache

一个无耻的插件,但我写了一个 Python 脚本,它试图像 ccache 一样工作,只是它可以包装 MSVC。见https://github.com/frerich/clcache

回答by Chris Dolan

There's an unofficial patchto ccache to support MSVC, but I haven't yet tried it myself...

ccache有一个非官方补丁支持 MSVC,但我自己还没有尝试过......

回答by js.mouret

Stashed

藏匿

It supports PDB, PCH, and has a nice dashboard.

它支持 PDB、PCH,并有一个不错的仪表板。

回答by Justin Randall

Incredibuild is very nice, though it is more like distccfor Visual Studio than ccache.

Incredibuild 非常好,尽管它更像是 Visual Studio 的distcc而不是 ccache。

If you want both ccache and distcc for a Visual Studio environment, try Stashedalong with Incredibuild at the same time. It works a lot like ccache+ distcc for Linux, without the configuration or administrative overhead.

如果您希望在 Visual Studio 环境中同时使用 ccache 和 distcc,请同时尝试Stashed和 Incredibuild。它的工作原理很像Linux 的ccache+ distcc,没有配置或管理开销。

回答by IanNorton

https://github.com/inorton/cclash

https://github.com/inorton/cclash

It is a bit more of a plug. I've been using it to shave about 35% off our Cygwin Visual Studio 2012 builds.

它更像是一个插头。我一直在使用它在我们的 Cygwin Visual Studio 2012 版本中减少大约 35% 的折扣。