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
Is there a 'ccache' for Visual Studio?
提问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...
回答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% 的折扣。

