Skip to main content

enablepch

Controls whether precompiled headers (PCH) are enabled for a configuration.

enablepch "value"

If no value is set for a configuration, the toolset's default behavior will be used.

Parameters

value specifies the desired behavior:

ValueDescription
DefaultUse the toolset default behavior (Default value)
OnEnable precompiled headers
OffDisable precompiled headers

Applies To

Project configurations.

Availability

Premake 5.0.0-beta8 or later.

Examples

Disable precompiled headers for a debug configuration:

filter "configurations:Debug"
enablepch "Off"

See Also