Merge pull request #779 from andlaus/reduce_default_optimization_level

reduce the default optimization level from -O3 to -O2
This commit is contained in:
Bård Skaflestad 2015-04-09 19:48:50 +02:00
commit 5830194474

View File

@ -38,7 +38,7 @@ if (CXX_COMPAT_GCC)
# default optimization flags, if not set by user
set_default_option (CXX _opt_dbg "-O0" "(^|\ )-O")
set_default_option (CXX _opt_rel "-O3" "(^|\ )-O")
set_default_option (CXX _opt_rel "-O2" "(^|\ )-O")
# use these options for debug builds - no optimizations
add_options (ALL_LANGUAGES "${_prof_DEBUG}" ${_opt_dbg} "-DDEBUG")