[igt-dev] [PATCH i-g-t 4/5] meson: Change the default build type to debugoptimized

Arkadiusz Hiler arkadiusz.hiler at intel.com
Thu May 9 10:03:25 UTC 2019


Similar as we had with autotools, enables some more compile checks.

Cc: Petri Latvala <petri.latvala at intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
 meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 2d54c28f..2a5a8580 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', '.')
 
-- 
2.20.1



More information about the igt-dev mailing list