You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/reference/running-lib.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,26 +31,27 @@ You can pass command-line arguments to LIB in a command file using the following
31
31
32
32
The file *commandfile* is a text file. No space or tab is allowed between the at sign (**\@**) and the file name. There is no default extension; you must specify the full file name, including any extension. Wildcards cannot be used. You can specify an absolute or relative path with the file name.
33
33
34
-
In the command file, arguments can be separated by spaces or tabs, as they can on the command line; they can also be separated by newline characters. Use a semicolon (;) to mark a comment. LIB ignores all text from the semicolon to the end of the line.
34
+
In the command file, arguments can be separated by spaces or tabs, as they can on the command line; they can also be separated by newline characters. Use a semicolon (**;**) to mark a comment. LIB ignores all text from the semicolon to the end of the line.
35
35
36
36
You can specify either all or part of the command line in a command file, and you can use more than one command file in a LIB command. LIB accepts the command-file input as if it were specified in that location on the command line. Command files cannot be nested. LIB echoes the contents of command files unless the /NOLOGO option is used.
37
37
38
38
## Using LIB Options
39
39
40
-
An option consists of an option specifier, which is either a dash ( - ) or a forward slash ( / ), followed by the name of the option. Option names cannot be abbreviated. Some options take an argument, specified after a colon (:). No spaces or tabs are allowed within an option specification. Use one or more spaces or tabs to separate option specifications on the command line. Option names and their keyword or file name arguments are not case sensitive, but identifiers used as arguments are case sensitive. LIB processes options in the order specified on the command line and in command files. If an option is repeated with different arguments, the last one to be processed takes precedence.
40
+
An option consists of an option specifier, which is either a dash (**-**) or a forward slash (**/**), followed by the name of the option. Option names cannot be abbreviated. Some options take an argument, specified after a colon (**:**). No spaces or tabs are allowed within an option specification. Use one or more spaces or tabs to separate option specifications on the command line. Option names and their keyword or file name arguments are not case sensitive, but identifiers used as arguments are case sensitive. LIB processes options in the order specified on the command line and in command files. If an option is repeated with different arguments, the last one to be processed takes precedence.
If lib.exe fails at runtime, you can use /ERRORREPORT to send information to Microsoft about these internal errors.
46
+
If lib.exe fails at runtime, you can use **/ERRORREPORT** to send information to Microsoft about these internal errors.
47
47
48
-
For more information about /ERRORREPORT, see [/errorReport (Report Internal Compiler Errors)](../../build/reference/errorreport-report-internal-compiler-errors.md).
48
+
For more information about **/ERRORREPORT**, see [/errorReport (Report Internal Compiler Errors)](../../build/reference/errorreport-report-internal-compiler-errors.md).
49
49
50
50
> **/LTCG**
51
51
52
-
"LTCG" stands for *link-time code generation* which enables build optimizations and 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.)
53
-
In the build process, the output from LIB is sent to LINK, which has its own separate /LTCG option which is used to perform various optimizations include whole-program optimization, and profile-guided optimization (PGO) instrumentation. (See [/LTCG](ltcg-link-time-code-generation.md) for more information about the LINK option.)
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.
53
+
54
+
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).
54
55
55
56
> **/MACHINE**
56
57
@@ -72,4 +73,4 @@ Other options apply only to specific modes of LIB. These options are discussed i
0 commit comments