Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

VCCLCompilerTool.WholeProgramOptimization Property

Definition

Namespace:
Microsoft.VisualStudio.VCProjectEngine
Assembly:
Microsoft.VisualStudio.VCProjectEngine.dll
Package:
Microsoft.VisualStudio.VCProjectEngine v17.14.40264

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets a value indicating whether to enable cross-module optimizations by delaying code generation to link time. WholeProgramOptimization exposes the functionality of the compiler's /GL (Whole Program Optimization) option.

public:
 property bool WholeProgramOptimization { bool get(); void set(bool value); };
public:
 property bool WholeProgramOptimization { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(38)]
public bool WholeProgramOptimization { [System.Runtime.InteropServices.DispId(38)] get; [System.Runtime.InteropServices.DispId(38)] set; }
[<System.Runtime.InteropServices.DispId(38)>]
[<get: System.Runtime.InteropServices.DispId(38)>]
[<set: System.Runtime.InteropServices.DispId(38)>]
member this.WholeProgramOptimization : bool with get, set
Public Property WholeProgramOptimization As Boolean

Property Value

true if cross-module optimizations are enabled; otherwise, false.

Attributes

Remarks

It is better to set the VCCLCompilerTool object's WholeProgramOptimization property rather than to set the compiler property of the same name and the linker's LinkTimeCodeGeneration property.

The compiler's version of this property and the linker's LinkTimeCodeGeneration property are not available via the property pages.

Applies to