Skip to main content

linktimeoptimization

The linktimeoptimization function specifies whether or not the toolset should perform link time optimization.

linktimeoptimization "value"

Parameters

value specifies whether or not to use link time optimization, if the toolset and exporter support it.

ValueDescription
OffNo LTO to be performed.
OnLTO optimization enabled.
DefaultDefault LTO optimizations for the toolset or exporter.

Applies To

Project configurations

Availability

Premake 5.0-beta4 and later