Skip to main content

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