smr99 Posted March 19, 2014 Share Posted March 19, 2014 Hi, 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. Thanks, -Steve Link to comment Share on other sites More sharing options...
shansen Posted March 19, 2014 Share Posted March 19, 2014 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 More sharing options...
Recommended Posts