Visual Studio 2015链接器需要很长时间才能进行调试构建 [英] Visual Studio 2015 linker takes very long for debug builds
问题描述
由于我们的代码发生了一些变化,一个项目(调试版本)的链接时间从大约1分钟到大约30分钟。
Hi, due to some changes in our code, the link time for one project (debug build) went from ~1 min up to ~30min.
到目前为止,我们无法找出原因是什么。
So far we could not find out what the cause is.
- 链接器日志显示我们在某些对象的通行证中为
- 禁用/ DEBUG将使链接再次快速兑换b
- 我们没有使用/ LTCG或/ GL
- 有时链接时间是小的b
- 发生在许多不同的机器
- The linker log shows that we are in Pass 2 at some objet
- disabling /DEBUG will make the link fasts again
- we are not using /LTCG or /GL
- sometimes the link time is samll
- happens on many different machines
link.exe: Microsoft(R)增量链接器版本14.00.24215.1
link.exe: Microsoft (R) Incremental Linker Version 14.00.24215.1
任何想法?
推荐答案
似乎设置 / p:PreferredToolArchitecture = x64解决问题。
这篇关于Visual Studio 2015链接器需要很长时间才能进行调试构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!