blob: 1081fe81f7a80ae0edd1162e6fbc2420dd25eef9 [file] [log] [blame]
Rafael Espindola3116f6e2015-07-17 18:49:26 +00001llvm-lib - LLVM lib.exe compatible library tool
2===============================================
3
James Hendersona0566842019-06-27 13:24:46 +00004.. program:: llvm-lib
Rafael Espindola3116f6e2015-07-17 18:49:26 +00005
6SYNOPSIS
7--------
8
Rafael Espindola3116f6e2015-07-17 18:49:26 +00009**llvm-lib** [/libpath:<path>] [/out:<output>] [/llvmlibthin]
10[/ignore] [/machine] [/nologo] [files...]
11
Rafael Espindola3116f6e2015-07-17 18:49:26 +000012DESCRIPTION
13-----------
14
Rafael Espindola3116f6e2015-07-17 18:49:26 +000015The **llvm-lib** command is intended to be a ``lib.exe`` compatible
16tool. See https://msdn.microsoft.com/en-us/library/7ykb2k5f for the
17general description.
18
19**llvm-lib** has the following extensions:
20
21* Bitcode files in symbol tables.
22 **llvm-lib** includes symbols from both bitcode files and regular
23 object files in the symbol table.
24
25* Creating thin archives.
26 The /llvmlibthin option causes **llvm-lib** to create thin archive
27 that contain only the symbol table and the header for the various
28 members. These files are much smaller, but are not compatible with
29 link.exe (lld can handle them).