Jump to content
OMRON Forums

Modifying compile flags


Recommended Posts



I've noticed that the Debug configuration compiles C code using "-g3" whereas the Release configuration compiles using "-O2 -Wall". I'd really like to see the warnings from -Wall in Debug configuration. How can I modify the gcc compile flags to add -Wall?


Second use case is that a lot of our code breaks "strict aliasing" rules -- too much to fix. So I'd like to add the flag -fno-strict-aliasing to the compile flags.




Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I don't know if there is a way to do this through the DT IDE as of yet, but you can open a bash shell in Cygwin and browse to the appropriate directory and issue 'make'. You will (of course) first have to manually edit the makefile to include the appropriate flags.


I have been using custom makefiles for a while (albeit through Eclipse, not the DT IDE) and it works just fine.

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...