[ant-contrib - Help] CC not setting optimize flag

"SourceForge.net" <[email protected]> Wed, 06 Feb 2008 13:30:25 -0800
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4763445
By: titanandrews

Hi All,

I am trying the cc task for the first time and I noticed that it does not set
the optimization flag properly when I specify the optimize attribute for the
cc task. I have set it to "speed", which I would expect to translate to O2 or
O3 on msvc compiler, however it is setting it to Od. I tried setting the attribute
to other ones too, and they all get translated to Od. In fact, I tried overriding
the flag with a compilerarg tag and I get the message "Command line warning
D9025 : overriding '/O2' with '/Od'" Funny! I am trying to override what the
cc task is setting, but instead it's the other way. Am I missing something?
Is there a bug?

Many thanks,

Barry



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=113701

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/