llvm-config.pod 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. =pod
  2. =head1 NAME
  3. llvm-config - Print LLVM compilation options
  4. =head1 SYNOPSIS
  5. B<llvm-config> I<option> [I<components>...]
  6. =head1 DESCRIPTION
  7. B<llvm-config> makes it easier to build applications that use LLVM. It can
  8. print the compiler flags, linker flags and object libraries needed to link
  9. against LLVM.
  10. =head1 EXAMPLES
  11. To link against the JIT:
  12. g++ `llvm-config --cxxflags` -o HowToUseJIT.o -c HowToUseJIT.cpp
  13. g++ `llvm-config --ldflags` -o HowToUseJIT HowToUseJIT.o \
  14. `llvm-config --libs engine bcreader scalaropts`
  15. =head1 OPTIONS
  16. =over
  17. =item B<--version>
  18. Print the version number of LLVM.
  19. =item B<-help>
  20. Print a summary of B<llvm-config> arguments.
  21. =item B<--prefix>
  22. Print the installation prefix for LLVM.
  23. =item B<--src-root>
  24. Print the source root from which LLVM was built.
  25. =item B<--obj-root>
  26. Print the object root used to build LLVM.
  27. =item B<--bindir>
  28. Print the installation directory for LLVM binaries.
  29. =item B<--includedir>
  30. Print the installation directory for LLVM headers.
  31. =item B<--libdir>
  32. Print the installation directory for LLVM libraries.
  33. =item B<--cxxflags>
  34. Print the C++ compiler flags needed to use LLVM headers.
  35. =item B<--ldflags>
  36. Print the flags needed to link against LLVM libraries.
  37. =item B<--libs>
  38. Print all the libraries needed to link against the specified LLVM
  39. I<components>, including any dependencies.
  40. =item B<--libnames>
  41. Similar to B<--libs>, but prints the bare filenames of the libraries
  42. without B<-l> or pathnames. Useful for linking against a not-yet-installed
  43. copy of LLVM.
  44. =item B<--libfiles>
  45. Similar to B<--libs>, but print the full path to each library file. This is
  46. useful when creating makefile dependencies, to ensure that a tool is relinked if
  47. any library it uses changes.
  48. =item B<--components>
  49. Print all valid component names.
  50. =item B<--targets-built>
  51. Print the component names for all targets supported by this copy of LLVM.
  52. =item B<--build-mode>
  53. Print the build mode used when LLVM was built (e.g. Debug or Release)
  54. =back
  55. =head1 COMPONENTS
  56. To print a list of all available components, run B<llvm-config
  57. --components>. In most cases, components correspond directly to LLVM
  58. libraries. Useful "virtual" components include:
  59. =over
  60. =item B<all>
  61. Includes all LLVM libaries. The default if no components are specified.
  62. =item B<backend>
  63. Includes either a native backend or the C backend.
  64. =item B<engine>
  65. Includes either a native JIT or the bitcode interpreter.
  66. =back
  67. =head1 EXIT STATUS
  68. If B<llvm-config> succeeds, it will exit with 0. Otherwise, if an error
  69. occurs, it will exit with a non-zero value.
  70. =head1 AUTHORS
  71. Maintained by the LLVM Team (L<http://llvm.org>).
  72. =cut