omitframepointer
Controls whether the frame pointer is omitted during compilation.
omitframepointer (value)
Parameters
value
is one of:
Default
: Use the compiler's default behavior.On
: Omit the frame pointer.Off
: Keep the frame pointer.
Applies To
The config
scope.
Availability
Premake 5.0.0 alpha 14 or later.
Examples
Keep frame pointer in debug builds for better stack traces:
filter "configurations:Debug"
omitframepointer "Off"
Omit frame pointer in release builds:
filter "configurations:Release"
omitframepointer "On"
Use compiler defaults across all configurations:
omitframepointer "Default"
See Also
- GCC Optimize Options - Documentation on
-fomit-frame-pointer
- MSVC Optimization Options - Microsoft Visual C++ frame pointer omission documentation
- Clang Optimization Options - Clang compiler documentation