]> git.lyx.org Git - features.git/commitdiff
SConstruct: apply Jürgen's patch to disable assertions in release mode (works only...
authorUwe Stöhr <uwestoehr@web.de>
Thu, 9 Jul 2009 18:05:49 +0000 (18:05 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 9 Jul 2009 18:05:49 +0000 (18:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30435 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct

index d1f7457d5240bff42fbf201ec22ea6ff5217e021..00c1f2414e3422f64634ceebf9ba35e3212bbdfb 100644 (file)
@@ -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'
         ),