Re: [CMake] default release build flags

2016-05-09 Thread Marcus D. Hanwell
On Thu, Apr 28, 2016 at 2:21 PM, Burlen Loring wrote: > Hi Guys, > > I'd like to discuss changing the defaults of CMAKE_C/CXX_FLAGS_RELEASE on > gcc, and potentially gcc like compilers such as clang and intel. > > Currently the default is "-O3 -DNDEBUG". I would like to

Re: [CMake] default release build flags

2016-05-09 Thread Robert Maynard
I think that changing the Release mode to generate non portable code is very nasty side-effect that would bite numerous projects down the road. I think a better avenue would be to think about adding another build configuration called ReleaseNative which would produce highly optimized non portable

[CMake] default release build flags

2016-04-28 Thread Burlen Loring
Hi Guys, I'd like to discuss changing the defaults of CMAKE_C/CXX_FLAGS_RELEASE on gcc, and potentially gcc like compilers such as clang and intel. Currently the default is "-O3 -DNDEBUG". I would like to discuss changing this to "-O3 -march=native -mtune=native -DNDEBUG". This change will