switch off debug compile-defs in release mode

This commit is contained in:
jacob 2026-02-27 01:40:43 -08:00
parent 21553804a2
commit 7b7b0afd64

View File

@ -423,12 +423,20 @@ void M_BuildEntryPoint(WaveLaneCtx *lane)
{ {
//- Common //- Common
{ {
if (M.cmdline.release)
{
PushStringToList(perm, &cp.defs, Lit("-DIsUnoptimized=0"));
PushStringToList(perm, &cp.defs, Lit("-DIsRtcEnabled=0"));
}
else
{
PushStringToList(perm, &cp.defs, Lit("-DIsUnoptimized=1"));
PushStringToList(perm, &cp.defs, Lit("-DIsRtcEnabled=1"));
}
PushStringToList(perm, &cp.defs, Lit("-DIsConsoleApp=0")); PushStringToList(perm, &cp.defs, Lit("-DIsConsoleApp=0"));
PushStringToList(perm, &cp.defs, Lit("-DIsRtcEnabled=1"));
PushStringToList(perm, &cp.defs, Lit("-DIsAsanEnabled=0")); PushStringToList(perm, &cp.defs, Lit("-DIsAsanEnabled=0"));
PushStringToList(perm, &cp.defs, Lit("-DIsDebinfoEnabled=1")); PushStringToList(perm, &cp.defs, Lit("-DIsDebinfoEnabled=1"));
PushStringToList(perm, &cp.defs, Lit("-DIsDeveloperModeEnabled=1")); PushStringToList(perm, &cp.defs, Lit("-DIsDeveloperModeEnabled=1"));
PushStringToList(perm, &cp.defs, Lit("-DIsUnoptimized=1"));
PushStringToList(perm, &cp.defs, Lit("-DIsTestingEnabled=0")); PushStringToList(perm, &cp.defs, Lit("-DIsTestingEnabled=0"));
PushStringToList(perm, &cp.defs, Lit("-DIsHotSwappingEnabled=1")); PushStringToList(perm, &cp.defs, Lit("-DIsHotSwappingEnabled=1"));
PushStringToList(perm, &cp.defs, StringF(perm, "-DDefaultAppName=%F", FmtString(M.cmdline.leaf_layer_name))); PushStringToList(perm, &cp.defs, StringF(perm, "-DDefaultAppName=%F", FmtString(M.cmdline.leaf_layer_name)));