This switch makes the compiler extend lifetimes of local variables, function parameters and 'this' till the end of their scopes increasing the chance for the debugger being able to display their values when debugging.
It may slightly reduce performance so it's an opt-in feature controlled with bOptimizeForDebugging variable in xPlatform sections on supported platforms in BuildConfiguration.xml scripts. Even when set to true, it won't affect Test or Shipping builds.
#rb brian.white
#jira UE-121644
[RN] minor Added support for -fextend-lifetimes compilation switch on selected Clang-based platforms which improves debugging experience of optimized builds by increasing the number of local variables for which the debugger can show values. The feature may slightly reduce performance and is intended to be used in development only. It has to be explicitly activated by setting bOptimizeForDebugging variable in <platform>Platform section of BuildConfiguration.xml. It won't affect Test or Shipping configurations.
[CL 27428905 by wojciech krywult in ue5-main branch]
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealBuildTool: Always enable ValidateFormatStrings for engine modules, and create a pch variant for modules that opt out
#rnx
[CL 27331965 by joe kirchoff in ue5-main branch]
Now we will use the existing LinuxPlatfromSDK or if doesn't exist make a new one and correctly register it
#jira UE-193418
#rb Josh.Adams, Zack.Neyland
[CL 27323816 by brandon schaefer in ue5-main branch]
When we have hybrid projects, we add temporary target and build files in Intermediate/Source. We need to regenerate the RulesFileCache for that temporary folder.
If we don't, our 'initial' attempt to BuildCookRun a project will fail because we won't discover any target files because of an invalid cache entry.
#jira UE-190114 UE-193398
#rb Kriss.Gossart Jeff.Fisher
[CL 27246945 by robert srinivasiah in ue5-main branch]