Export (0) Print
Expand All
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

VCCLCompilerTool.WholeProgramOptimization Property 

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 option.

Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in microsoft.visualstudio.vcprojectengine.dll)

bool WholeProgramOptimization { get; set; }
/** @property */
boolean get_WholeProgramOptimization ()

/** @property */
void set_WholeProgramOptimization (/** @attribute InAttribute() */ boolean wholeProgOp)

function get WholeProgramOptimization () : boolean

function set WholeProgramOptimization (wholeProgOp : boolean)

Property Value

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

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.