Pelles C forum

Pelles C => Feature requests => Topic started by: AlexN on July 29, 2009, 07:42:33 AM

Title: Different compiler option for some files of a project
Post by: AlexN on July 29, 2009, 07:42:33 AM
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.
Title: Re: Different compiler option for some files of a project
Post by: Pelle on July 31, 2009, 02:58:17 PM
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).
Title: Re: Different compiler option for some files of a project
Post by: AlexN on July 31, 2009, 09:36:46 PM
OK, complicated but possible.

Thank you!  :)