summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2016-10-17 20:31:01 +0200
committerBłażej Szczygieł <spaz16@wp.pl>2016-10-17 20:31:01 +0200
commit639ea563e059007675e3fe8071fd24d882da29ba (patch)
tree5a0882bee986fd9db664abcb0e89686858f2b5ec /SConstruct
parente96c49f849fd9c5e41c8284c7122ec94909badac (diff)
Disable asserts in release mode
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7b07ee8857..5c9d87a5a3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -261,6 +261,8 @@ if selected_platform in platform_list:
sys.exit(255)
suffix+=".opt"
+ env.Append(CCFLAGS=['-DNDEBUG']);
+
elif (env["target"]=="release_debug"):
if (env["tools"]=="yes"):
suffix+=".opt.tools"