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 installation directory for LLVM binaries.
47 Print the installation directory for LLVM headers.
51 Print the installation directory for LLVM libraries.
55 Print the C++ compiler flags needed to use LLVM headers.
59 Print the flags needed to link against LLVM libraries.
63 Print all the libraries needed to link against the specified LLVM
64 I<components>, including any dependencies.
68 Similar to B<--libs>, but prints the bare filenames of the libraries
69 without B<-l> or pathnames. Useful for linking against a not-yet-installed
74 Print all valid component names.
76 =item B<--targets-built>
78 Print the component names for all targets supported by this copy of LLVM.
84 To print a list of all available components, run B<llvm-config
85 --components>. In most cases, components correspond directly to LLVM
86 libraries. Useful "virtual" components include:
92 Includes all LLVM libaries. The default if no components are specified.
96 Includes either a native backend or the C backend.
100 Includes either a native JIT or the bytecode interpreter.
106 If B<llvm-config> succeeds, it will exit with 0. Otherwise, if an error
107 occurs, it will exit with a non-zero value.
111 Maintained by the LLVM Team (L<http://llvm.org>).