diff --git a/SConstruct b/SConstruct index aab605cdcbc..f326e538f1b 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"