llvm-lib.rst 876 B

1234567891011121314151617181920212223242526272829
  1. llvm-lib - LLVM lib.exe compatible library tool
  2. ===============================================
  3. .. program:: llvm-lib
  4. SYNOPSIS
  5. --------
  6. **llvm-lib** [/libpath:<path>] [/out:<output>] [/llvmlibthin]
  7. [/ignore] [/machine] [/nologo] [files...]
  8. DESCRIPTION
  9. -----------
  10. The **llvm-lib** command is intended to be a ``lib.exe`` compatible
  11. tool. See https://msdn.microsoft.com/en-us/library/7ykb2k5f for the
  12. general description.
  13. **llvm-lib** has the following extensions:
  14. * Bitcode files in symbol tables.
  15. **llvm-lib** includes symbols from both bitcode files and regular
  16. object files in the symbol table.
  17. * Creating thin archives.
  18. The /llvmlibthin option causes **llvm-lib** to create thin archive
  19. that contain only the symbol table and the header for the various
  20. members. These files are much smaller, but are not compatible with
  21. link.exe (lld can handle them).