diff --git a/src/meta/meta.c b/src/meta/meta.c index 18c40b25..cca8fead 100644 --- a/src/meta/meta.c +++ b/src/meta/meta.c @@ -423,12 +423,20 @@ void M_BuildEntryPoint(WaveLaneCtx *lane) { //- 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("-DIsRtcEnabled=1")); PushStringToList(perm, &cp.defs, Lit("-DIsAsanEnabled=0")); PushStringToList(perm, &cp.defs, Lit("-DIsDebinfoEnabled=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("-DIsHotSwappingEnabled=1")); PushStringToList(perm, &cp.defs, StringF(perm, "-DDefaultAppName=%F", FmtString(M.cmdline.leaf_layer_name)));