Different compiler option for some files of a project

Started by AlexN, July 29, 2009, 07:42:33 AM

Previous topic - Next topic

AlexN

Hello

I like to have the possiblilty to overrule the compiler options for some files of a project (f.e. to disable optimization for a single file).
I know this is also possible by pragmas, but sometimes it would be easier to do this by the IDE.
best regards
Alex ;)

Pelle

Well, use the IDE to change it then(!): View -> Target files, Properties for the associated object file, Build commands tab - change the options directly, or add a new macro to Project Options, Macros tab (say CCFLAGS2) and use that macro (and remember that future changes to this macro should be done from the Macros tab).
/Pelle

AlexN

best regards
Alex ;)