aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/compilers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 4f55be4..f80a28d 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -55,7 +55,9 @@ def is_library(fname):
return suffix in lib_suffixes
gnulike_buildtype_args = {'plain' : [],
- 'debug' : ['-g'],
+ # -O0 is passed for improved debugging information with gcc
+ # See https://github.com/mesonbuild/meson/pull/509
+ 'debug' : ['-O0', '-g'],
'debugoptimized' : ['-O2', '-g'],
'release' : ['-O3']}