summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-05-07 14:52:09 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-05-10 10:58:54 +0300
commitefec5d21ee16d47cc4058a935ac37091293f7933 (patch)
tree5c2ad1d0eabf2d498042816728d4297755c05f11
parent9c6bda2c852b70fae2fa8e058198c974d2d1bdda (diff)
meson: Change the default build type to debugoptimized
Similar as we had with autotools, enables some more compile checks. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--meson.build5
1 files changed, 3 insertions, 2 deletions
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', '.')