NO

Author Topic: Different compiler option for some files of a project  (Read 4089 times)

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Different compiler option for some files of a project
« 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.
best regards
 Alex ;)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Different compiler option for some files of a project
« Reply #1 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).
/Pelle

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Different compiler option for some files of a project
« Reply #2 on: July 31, 2009, 09:36:46 PM »
OK, complicated but possible.

Thank you!  :)
best regards
 Alex ;)