Skip to content

Commit fa669e4

Browse files
author
mikeblome
committed
reworded a bit based on prior thread with product team
1 parent 34c3be9 commit fa669e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/build/reference/running-lib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Running LIB | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "09/24/2018"
4+
ms.date: "09/27/2018"
55
ms.technology: ["cpp-tools"]
66
ms.topic: "reference"
77
f1_keywords: ["VC.Project.VCLibrarianTool.TargetMachine", "Lib", "VC.Project.VCLibrarianTool.PrintProgress", "VC.Project.VCLibrarianTool.SuppressStartupBanner"]
@@ -49,7 +49,7 @@ For more information about **/ERRORREPORT**, see [/errorReport (Report Internal
4949

5050
> **/LTCG**
5151
52-
**/LTCG** enables *link-time code generation*, which enables build optimizations beyond what the compiler can provide for a single translation unit. **/LTCG** requires cooperation between the compiler ([cl.exe](compiler-options.md)), LIB, and the linker ([LINK](linker-options.md)). Use this option to tell LIB that the inputs from cl.exe include object files that were generated by using the [/GL](gl-whole-program-optimization.md) compiler option. If LIB.exe encounters such inputs and **/LTCG** is not specified, it will restart with /LTCG enabled after displaying an informational message.
52+
"LTCG" stands for *link-time code generation*, which enables build optimizations beyond what the compiler can provide for a single translation unit. The feature requires cooperation between the compiler ([cl.exe](compiler-options.md)), LIB, and the linker ([LINK](linker-options.md)). For LIB, the **/LTCG** option specifies that the inputs from cl.exe include object files that were generated by using the [/GL](gl-whole-program-optimization.md) compiler option. If LIB.exe encounters such inputs and **/LTCG** is not specified, it will restart with /LTCG enabled after displaying an informational message. Although it is not necessary to explicitly set this option, it speeds up build performance to do so because LIB does not have to restart itself.
5353

5454
In the build process, the output from LIB is sent to LINK. LINK has its own separate **/LTCG** option which is used to perform various optimizations, including whole-program optimization and profile-guided optimization (PGO) instrumentation. For more information about the LINK option, see [/LTCG](ltcg-link-time-code-generation.md).
5555

0 commit comments

Comments
 (0)