From efec5d21ee16d47cc4058a935ac37091293f7933 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Tue, 7 May 2019 14:52:09 +0300 Subject: meson: Change the default build type to debugoptimized Similar as we had with autotools, enables some more compile checks. Cc: Petri Latvala Signed-off-by: Arkadiusz Hiler Reviewed-by: Petri Latvala --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index c29b4c98..503180ed 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,8 @@ project('igt-gpu-tools', 'c', default_options: [ 'warning_level=2', 'c_std=gnu11', - 'b_ndebug=false', + 'b_ndebug=false', + 'buildtype=debugoptimized', ], license : 'MIT', meson_version : '>=0.46.0') @@ -113,7 +114,7 @@ _tests_required = build_tests == 'true' _build_runner = build_runner != 'false' _runner_required = build_runner == 'true' -build_info = [] +build_info = ['Build type: ' + get_option('buildtype')] inc = include_directories('include/drm-uapi', 'lib', 'lib/stubs/syscalls', '.') -- cgit v1.2.3