From: Uwe Stöhr Date: Thu, 9 Jul 2009 18:05:49 +0000 (+0000) Subject: SConstruct: apply Jürgen's patch to disable assertions in release mode (works only... X-Git-Tag: 2.0.0~6121 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8eb09052ffde4556719a5d7382e7ba8a3f525499;p=features.git SConstruct: apply Jürgen's patch to disable assertions in release mode (works only on Linux not on Windows, but better than nothing). I tested the patch the last weeks without having problems. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30435 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/SConstruct b/development/scons/SConstruct index d1f7457d52..00c1f2414e 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -743,7 +743,7 @@ utils.createConfigFile(conf, #('newapis.h', 'HAVE_NEWAPIS_H', 'c'), ], custom_tests = [ - (env.has_key('assertions') and env['assertions'] and devel_version, + (env.has_key('assertions') and env['assertions'] and mode == 'debug', 'ENABLE_ASSERTIONS', 'Define if you want assertions to be enabled in the code' ),