I have a solution containing several C++ projects that will build a VC++ MFC application. Normal build times for the solution are around 7 minutes.
When I run msbuild /p:RunCodeAnalysis=true /p:Configuration=Release /p:Platform=x64 /v:q MyApp.sln the build fails with "compiler is out of heap space". I've tried turning off precompiled headers as suggested at vs2013-quotfatal-error-c1060-compiler-is-out-of-heap-spacequot-on-building-for-code-analysis but I get the same "compiler is out of heap space" error. The request fails after about 40 minutes.
What other options are available to avoid this error when generating code analysis reports?