diff --git a/SConstruct b/SConstruct index 7b07ee88578..5c9d87a5a3a 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"