Timeline for Optimize in CMake by default
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 23, 2017 at 13:46 | comment | added | jww |
Agree with @n.m.. You want at least -O1 even in debug builds so GCC performs some analysis and provides warnings for overflow, aliasing, etc.
|
|
May 23, 2017 at 12:25 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Dec 28, 2016 at 12:32 | history | edited | roalz | CC BY-SA 3.0 |
added 407 characters in body
|
Dec 28, 2016 at 12:28 | comment | added | roalz | @marmistrz: when no CMAKE_BUILD_TYPE is specified, CMAKE_CXX_FLAGS is used, as stated in the CMake wiki: cmake.org/Wiki/CMake_Useful_Variables | |
Dec 28, 2016 at 12:13 | comment | added | n. m. could be an AI | @marmistrz yes, but still it won't hurt. | |
Dec 28, 2016 at 12:07 | comment | added | marmistrz | @n.m. gcc doesn't optimize at all by default | |
Dec 28, 2016 at 12:07 | comment | added | marmistrz |
But then the -O3 is not passed to the compiler when cmake ..
|
|
Dec 28, 2016 at 12:06 | comment | added | n. m. could be an AI | I would say "-g -O0". | |
Dec 28, 2016 at 12:04 | history | answered | roalz | CC BY-SA 3.0 |