Use 'buildtype' to set debug/optimization options
authorNikolaus Rath <Nikolaus@rath.org>
Tue, 22 Aug 2017 09:10:00 +0000 (11:10 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Tue, 22 Aug 2017 09:16:45 +0000 (11:16 +0200)
Until now, running `mesonconf -D buildtype=debug` didn't have any
effect - which was confusing.

meson.build

index cdb63c3bf52521465389f7f50178cd902ebfe5b0..8fcdbd7dc91cc9f61fd6550c4c34090dbbc78560 100644 (file)
@@ -1,6 +1,6 @@
 project('libfuse3', 'c', version: '3.1.1',
         meson_version: '>= 0.38',
-        default_options: [ 'buildtype=plain' ])
+        default_options: [ 'buildtype=debugoptimized' ])
 
 
 platform = host_machine.system()
@@ -65,7 +65,7 @@ configure_file(output: 'config.h',
 #
 add_global_arguments('-D_REENTRANT', '-DHAVE_CONFIG_H', '-Wall', '-Wextra', '-Wno-sign-compare',
                      '-Wstrict-prototypes', '-Wmissing-declarations', '-Wwrite-strings',
-                     '-O2', '-g', '-fno-strict-aliasing', language: 'c')
+                     '-fno-strict-aliasing', language: 'c')
 
 # Some (stupid) GCC versions warn about unused return values even when they are
 # casted to void. This makes -Wunused-result pretty useless, since there is no