Browse Source

Disable asserts in release mode

(cherry picked from commit 639ea563e059007675e3fe8071fd24d882da29ba)
Błażej Szczygieł 8 years ago
parent
commit
dcd4b80c13
1 changed files with 2 additions and 0 deletions
  1. 2 0
      SConstruct

+ 2 - 0
SConstruct

@@ -265,6 +265,8 @@ if selected_platform in platform_list:
 			sys.exit(255)
 			sys.exit(255)
 		suffix+=".opt"
 		suffix+=".opt"
 
 
+		env.Append(CCFLAGS=['-DNDEBUG']);
+
 	elif (env["target"]=="release_debug"):
 	elif (env["target"]=="release_debug"):
 		if (env["tools"]=="yes"):
 		if (env["tools"]=="yes"):
 			suffix+=".opt.tools"
 			suffix+=".opt.tools"