NO

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

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 383
    • 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: 1974
    • 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: 383
    • 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 ;)