From 3312435ae2a0d3a01318dbc24573d96b70709dc9 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 4 Aug 2010 14:41:27 +0000 Subject: [PATCH] Fix the linux debug build in a better way so that wxWidgets debugging is still enabled. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6051 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index fe6961d117..14c952ec72 100644 --- a/SConstruct +++ b/SConstruct @@ -97,9 +97,6 @@ if env['CCVERSION'] >= '4.3.0': env['CPPDEFINES'] = [] if env['flavor'] == 'debug': env['CPPDEFINES'] += ['_DEBUG'] - if sys.platform == 'linux2': - # FIXME: This disables wx debugging how do we make it work? - env['CPPDEFINES'] += ['NDEBUG'] elif env['flavor'] == 'fastlog': env['CPPDEFINES'] += ['DEBUGFAST'] env['CPPPATH'] = ['#Source/PluginSpecs'] @@ -232,7 +229,8 @@ else: if env['nowx']: env['HAVE_WX'] = 0 else: - env['HAVE_WX'] = conf.CheckWXConfig(2.8, 'aui adv core base'.split(), 0) + env['HAVE_WX'] = conf.CheckWXConfig(2.8, 'aui adv core base'.split(), + env['flavor'] == 'debug') conf.Define('HAVE_WX', env['HAVE_WX']) wxconfig.ParseWXConfig(env) if not env['HAVE_WX']: