summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-10-22 12:55:21 +0200
committerGitHub <noreply@github.com>2016-10-22 12:55:21 +0200
commit3dd405c517da351873c1bec01e202a603cee5f75 (patch)
treec73655223066c208a75db4fb84a19b9ac20c0afa
parent853d1ce9f30b93933e5e2f5dad78f7bf75742b15 (diff)
parent639ea563e059007675e3fe8071fd24d882da29ba (diff)
Merge pull request #6857 from zaps166/disable-asserts-in-release
Disable asserts in release mode
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index aab605cdcb..f326e538f1 100644
--- a/SConstruct
+++ b/SConstruct
@@ -262,6 +262,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"