5 llvm-config - Print LLVM compilation options
9 B<llvm-config> I<option> [I<components>...]
13 B<llvm-config> makes it easier to build applications that use LLVM. It can
14 print the compiler flags, linker flags and object libraries needed to link
19 To link against the JIT:
21 g++ `llvm-config --cxxflags` -o HowToUseJIT.o -c HowToUseJIT.cpp
22 g++ `llvm-config --ldflags` -o HowToUseJIT HowToUseJIT.o \
23 `llvm-config --libs engine bcreader scalaropts`
31 Print the version number of LLVM.
35 Print a summary of B<llvm-config> arguments.
39 Print the installation prefix for LLVM.
43 Print the source root from which LLVM was built.
47 Print the object root used to build LLVM.
51 Print the installation directory for LLVM binaries.
55 Print the installation directory for LLVM headers.
59 Print the installation directory for LLVM libraries.
63 Print the C++ compiler flags needed to use LLVM headers.
67 Print the flags needed to link against LLVM libraries.
71 Print all the libraries needed to link against the specified LLVM
72 I<components>, including any dependencies.
76 Similar to B<--libs>, but prints the bare filenames of the libraries
77 without B<-l> or pathnames. Useful for linking against a not-yet-installed
82 Similar to B<--libs>, but print the full path to each library file. This is
83 useful when creating makefile dependencies, to ensure that a tool is relinked if
84 any library it uses changes.
88 Print all valid component names.
90 =item B<--targets-built>
92 Print the component names for all targets supported by this copy of LLVM.
96 Print the build mode used when LLVM was built (e.g. Debug or Release)
102 To print a list of all available components, run B<llvm-config
103 --components>. In most cases, components correspond directly to LLVM
104 libraries. Useful "virtual" components include:
110 Includes all LLVM libaries. The default if no components are specified.
114 Includes either a native backend or the C backend.
118 Includes either a native JIT or the bitcode interpreter.
124 If B<llvm-config> succeeds, it will exit with 0. Otherwise, if an error
125 occurs, it will exit with a non-zero value.
129 Maintained by the LLVM Team (L<http://llvm.org>).