Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/ToolChain
wojciech krywult 30742d8364 UBT: Clang: Added support for Clang's -fextend-lifetimes switch which improves debugging experience in optimized builds.
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]
2023-08-28 18:28:56 -04:00
..