[gnome-bluetooth] build: Remove debug related variables
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] build: Remove debug related variables
- Date: Wed, 15 Nov 2017 12:52:19 +0000 (UTC)
commit 33d164596ebddaab77b1e20e659a68fa037c2462
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Tue Nov 14 11:35:46 2017 +0100
build: Remove debug related variables
meson was holding a variable for the build type, and another one
for checking if the build is a debug build.
This can be inspected directly, without storing it in any variable,
because it's only used once.
https://bugzilla.gnome.org/show_bug.cgi?id=790332
meson.build | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index bdc8eaf..4ca4acc 100644
--- a/meson.build
+++ b/meson.build
@@ -32,9 +32,6 @@ gnomebt_mandir = join_paths(gnomebt_prefix, get_option('mandir'))
gnomebt_pkgdatadir = join_paths(gnomebt_datadir, meson.project_name())
gnomebt_pkglibdir = join_paths(gnomebt_libdir, meson.project_name())
-gnomebt_buildtype = get_option('buildtype')
-gnomebt_debug = gnomebt_buildtype.contains('debug')
-
# options
enable_gtk_doc = get_option('gtk_doc')
enable_gir = get_option('introspection')
@@ -82,7 +79,7 @@ common_flags = [
]
compiler_flags = []
-if gnomebt_debug
+if get_option('buildtype').contains('debug')
test_flags = [
'-Werror=format=2',
'-Werror=implicit-function-declaration',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]