table of contents
LLVM-CONFIG(1) | LLVM | LLVM-CONFIG(1) |
NAME¶
llvm-config - Print LLVM compilation optionsSYNOPSIS¶
llvm-config option [components...]DESCRIPTION¶
llvm-config makes it easier to build applications that use LLVM. It can print the compiler flags, linker flags and object libraries needed to link against LLVM.EXAMPLES¶
To link against the JIT:g++ `llvm-config --cxxflags` -o HowToUseJIT.o -c HowToUseJIT.cpp g++ `llvm-config --ldflags` -o HowToUseJIT HowToUseJIT.o \ `llvm-config --libs engine bcreader scalaropts`
OPTIONS¶
--versionPrint the version number of LLVM.
Print a summary of llvm-config
arguments.
Print the installation prefix for LLVM.
Print the source root from which LLVM was
built.
Print the object root used to build
LLVM.
Print the installation directory for LLVM
binaries.
Print the installation directory for LLVM
headers.
Print the installation directory for LLVM
libraries.
Print the C++ compiler flags needed to use
LLVM headers.
Print the flags needed to link against LLVM
libraries.
Print all the libraries needed to link against
the specified LLVM components, including any dependencies.
Similar to --libs, but prints the bare
filenames of the libraries without -l or pathnames. Useful for linking
against a not-yet-installed copy of LLVM.
Similar to --libs, but print the full
path to each library file. This is useful when creating makefile dependencies,
to ensure that a tool is relinked if any library it uses changes.
Print all valid component names.
Print the component names for all targets
supported by this copy of LLVM.
Print the build mode used when LLVM was built
(e.g. Debug or Release)
COMPONENTS¶
To print a list of all available components, run llvm-config --components. In most cases, components correspond directly to LLVM libraries. Useful "virtual" components include:Includes all LLVM libaries. The default if no
components are specified.
Includes either a native backend or the C
backend.
Includes either a native JIT or the bitcode
interpreter.
EXIT STATUS¶
If llvm-config succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value.AUTHOR¶
Maintained by The LLVM Team (http://llvm.org/).COPYRIGHT¶
2003-2014, LLVM Project2015-02-27 | 3.5 |