From 2a818faea50a7a6fb1bda61027edeb25db007ad0 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 22 Aug 2017 11:09:03 +0200 Subject: Use 'buildtype' to set debug/optimization options Until now, running `mesonconf -D buildtype=debug` didn't have any effect - which was confusing. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 315f330..62a285f 100644 --- a/meson.build +++ b/meson.build @@ -1,8 +1,8 @@ project('sshfs', 'c', version: '3.2.0', meson_version: '>= 0.38', - default_options: [ 'buildtype=plain' ]) + default_options: [ 'buildtype=debugoptimized' ]) -add_global_arguments('-D_REENTRANT', '-DHAVE_CONFIG_H', '-O2', '-g', +add_global_arguments('-D_REENTRANT', '-DHAVE_CONFIG_H', '-Wall', '-Wextra', '-Wno-sign-compare', '-Wmissing-declarations', '-Wwrite-strings', language: 'c') -- cgit v1.2.3