(cherry picked from commit 639ea563e059007675e3fe8071fd24d882da29ba)
@@ -265,6 +265,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"