Skip to main content

linktimeoptimization

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.

ValueDescriptionNotes
OffNo LTO to be performed.
OnLTO enabled.
FastIncremental/Fast LTO enabled.Visual Studio & Clang only, available from Premake 5.0-beta8 or later
DefaultDefault LTO setting for the toolset or exporter.

Applies To​

Project configurations

Availability​

Premake 5.0.0-beta4 and later