visual-studiovisual-c++visual-studio-2015ipdb

Possible to stop generating *.ipdb *.iobj files by VIsual Studio 2015?


In Visual Studio Community 2015, a Visual C++ project generates a *.ipdb file and a *.iobj file in its Release folder.

Now in Visual Studio Community 2013, I've never seen these files generated in project Release folder and so I'd like to know -

Is it possible to stop generating them?


Solution

  • These files are produced when Incremental Link-Time Code Generation (LTCG) is enabled. This is a new feature in Visual C++ 2015.

    If you disable Incremental LTCG, the linker will stop producing these files. But then you lose the benefits of Incremental LTCG.

    To disable Incremental LTCG, modify your project properties: Under Linker => Optimization change "Link Time Code Generation" to something other than "Use Fast Link Time Code Generation (/LTCG:incremental)" (this is the default for Release builds).