Skip to main content

runtimechecks

Controls whether runtime error checking is enabled for Visual Studio C/C++ projects.

runtimechecks ("value")

If no value is set for a configuration, the toolset's default behavior will be used. By default, runtime checks are enabled for debug builds.

Parameters

value specifies the desired behavior:

ValueDescription
OffTurns off runtime error checking
DefaultUse the toolset default behavior (Default value)
StackFramesEnables runtime checks for stack frames
UninitializedVariablesEnables runtime checks for uninitialized variables
FastChecksEnables all fast runtime checks

Applies To

Project configurations.

Availability

Premake 5.0.0-beta8 or later in Visual Studio only.

Examples

Disable runtime checks:

runtimechecks "Off"

Enable runtime checks even in optimized builds:

filter { "configurations:Release" }
optimize "On"
runtimechecks "FastChecks"