Question

I'm using MSbuild class for compile visual studio 2010 projects from module of my programm. But I can't find how to tell compiler which optimization flags it must use. There is only Optimize property on MSBuild and only tag at .vcxproj file. But I want to play with such compiler switch like /Os /Ot /Oi etc. How to do that?

Was it helpful?

Solution

There is standard CL Task in MSBuild, which is represented by

<ClCompile>

tag in .vcxproj file. So it's possible to playing with compiler switches via Parameters of this task

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top