Barry Andrews - 2008-02-06

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,