scripts/unit-test: Set meson build type
We want to make sure the build we are testing is producing debug output
and that our dependencies have debug symbols but are optimized for
speed.
Change-Id: Id8606f3906a796c65600f54b28e76690a1b569be
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index 416d640..a832304 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -407,6 +407,10 @@
'-Db_colorout=never',
'-Db_coverage=' + str(build_for_testing).lower(),
]
+ if build_for_testing:
+ meson_flags.append('--buildtype=debug')
+ else:
+ meson_flags.append('--buildtype=debugoptimized')
if 'tests' in meson_options:
meson_flags.append('-Dtests=' + mesonFeature(build_for_testing))
if 'examples' in meson_options: