In VS.Net 2003 it appears to default to
/O2.
Ray
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gert Driesen
Sent: Wednesday, April 20, 2005 11:31 AM
To: [EMAIL PROTECTED]; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] /O2 is not set when using NANT
Ray,
If I'm not mistaken, the default optimization for VC++ 7.0
projects was not /02. If you can verify this (I don't have VS 2002 installed),
then we can fix this the right way.
Better submit a bug report for this to allow us to track
it.
Gert
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray
Johnson
Sent: woensdag 20 april 2005 20:10
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] /O2 is not set when using NANT
Sent: woensdag 20 april 2005 20:10
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] /O2 is not set when using NANT
In a standard C++ project the /O2 option is passed in during a standard release build. However, unless you've mucked with the Optimization settings the setting is not set in the project file it is the default. (I.e. the Optimization attribute does not exist for the VCCLCompilerTool.) As a result Nant does not compile it's sources with the /O2 flag.There is a work around. If you set the Optimization to something different (save) and then change it back to /O2 in the project - VS.Net will force the Optimization="2" attribute to exist in the project.Ray