compilers/gnu: set level 0 optimization to '-O0'

GCC with optimization set to 0 does not actually result in no
optimizations, which can be annoying when trying to use a debugger like
gdb, and finding that your variable has been optimized out. We already
do this with clang, so gcc is a bit of an outlier here.
pull/10059/head
Dylan Baker 3 years ago committed by Jussi Pakkanen
parent 4934b9968a
commit f9bfeb2add
  1. 2
      mesonbuild/compilers/mixins/gnu.py

@ -55,7 +55,7 @@ gnulike_buildtype_args = {
} # type: T.Dict[str, T.List[str]]
gnu_optimization_args = {
'0': [],
'0': ['-O0'],
'g': ['-Og'],
'1': ['-O1'],
'2': ['-O2'],

Loading…
Cancel
Save