From 16f438cf232050e283d41f2756d467bb56763173 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sun, 19 Apr 2020 00:25:10 +0200 Subject: [PATCH] related to last commit, now even better: We keep optimisations but just enable verbose messages --- wscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 6db51de..65a7f4b 100644 --- a/wscript +++ b/wscript @@ -17,7 +17,7 @@ def options(opt): # opt.add_option('--use-system-ntk', action='store_true', default=False, # dest='use_system_ntk', # help="Link to system-installed shared NTK instead of bundled version") - opt.add_option('--enable-debug', action='store_true', default=True, dest='debug', + opt.add_option('--enable-debug', action='store_true', default=False, dest='debug', help='Build for debugging') opt.add_option('--disable-sse', action='store_false', default=True, dest='sse', help='Disable SSE optimization') @@ -79,11 +79,12 @@ def configure(conf): print('Building for debugging') conf.env.append_value('CFLAGS', debug_flags ) conf.env.append_value('CXXFLAGS', debug_flags ) + else: print('Building for performance') conf.env.append_value('CFLAGS', optimization_flags ) conf.env.append_value('CXXFLAGS', optimization_flags ) - conf.define( 'NDEBUG', 1 ) + #conf.define( 'NDEBUG', 1 ) conf.define( "_GNU_SOURCE", 1)