diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-22 11:10:00 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-22 11:16:45 +0200 |
commit | 9d4ec147f583e038d60297c0ed5a4dfa558c476d (patch) | |
tree | 54dcb69fc283cc0d9bb1e9707994cb0fb674b57d /meson.build | |
parent | 811c808b1d28bdea7a1b0bb0e5bafb9dfbe9b3bb (diff) |
Use 'buildtype' to set debug/optimization options
Until now, running `mesonconf -D buildtype=debug` didn't have any
effect - which was confusing.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index cdb63c3..8fcdbd7 100644 --- a/meson.build +++ b/meson.build @@ -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 |