[wing] Remove debug option



commit 016fb054a158485b45bcaca033b8798866841b53
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Fri Mar 3 11:36:09 2017 +0100

    Remove debug option
    
    We are not really using it, if needed we can add it in the future

 meson.build       |   32 --------------------------------
 meson_options.txt |    1 -
 wing/meson.build  |    2 +-
 3 files changed, 1 insertions(+), 34 deletions(-)
---
diff --git a/meson.build b/meson.build
index faaa33b..4d1d110 100644
--- a/meson.build
+++ b/meson.build
@@ -117,38 +117,6 @@ foreach cflag: test_cflags
   endif
 endforeach
 
-# Debugging
-enable_debug = get_option('enable-debug')
-if enable_debug == 'auto'
-  if wing_minor_version.is_odd()
-    enable_debug = 'yes'
-  else
-    enable_debug = 'minimum'
-  endif
-endif
-
-debug_flags = []
-if enable_debug == 'yes'
-  debug_flags += [
-    '-DWING_ENABLE_DEBUG'
-  ]
-endif
-
-if enable_debug == 'minimum'
-  debug_flags += [
-    '-DWING_ENABLE_DEBUG',
-    '-DG_DISABLE_CAST_CHECKS'
-  ]
-endif
-
-if enable_debug == 'no'
-  debug_flags += [
-    '-DG_DISABLE_CAST_CHECKS',
-    '-DG_DISABLE_CHECKS',
-    '-DG_DISABLE_ASSERT'
-  ]
-endif
-
 extra_args= []
 # Detect and set symbol visibility
 if cc.get_id() == 'msvc'
diff --git a/meson_options.txt b/meson_options.txt
index 0108b66..e69de29 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1 +0,0 @@
-option('enable-debug', type: 'combo', choices: [ 'auto', 'yes', 'minimum', 'no' ], value: 'yes', 
description: 'Enable debugging level')
diff --git a/wing/meson.build b/wing/meson.build
index 232aa6b..def0174 100644
--- a/wing/meson.build
+++ b/wing/meson.build
@@ -38,7 +38,7 @@ wing = shared_library('wing-@0@'.format(wing_api_version),
   soversion: soversion,
   install: true,
   dependencies: platform_deps,
-  c_args: extra_args + common_flags + debug_flags + [
+  c_args: extra_args + common_flags + [
             '-DG_LOG_DOMAIN="Wing"' ],
   link_args: wing_link_args)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]