Man page generated from reStructuredText.
.
"LLVM-CONFIG" "1" "2016-07-10" "3.8" "LLVM"
NAME
llvm-config - Print LLVM compilation options . .nr rst2man-indent-level 0 . \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .rstReportMargin pre:
. RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .rstReportMargin post:
.. . RE indent \\n[an-margin]
old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1 new: \\n[rst2man-indent\\n[rst2man-indent-level]]
..
SYNOPSIS
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: NDENT 0.0 NDENT 3.5
g++ \(gallvm-config --cxxflags\(ga -o HowToUseJIT.o -c HowToUseJIT.cpp
g++ \(gallvm-config --ldflags\(ga -o HowToUseJIT HowToUseJIT.o \e
 \(gallvm-config --libs engine bcreader scalaropts\(ga
NINDENT NINDENT
OPTIONS
--version NDENT 0.0 NDENT 3.5 Print the version number of LLVM. NINDENT NINDENT -help NDENT 0.0 NDENT 3.5 Print a summary of llvm-config arguments. NINDENT NINDENT --prefix NDENT 0.0 NDENT 3.5 Print the installation prefix for LLVM. NINDENT NINDENT --src-root NDENT 0.0 NDENT 3.5 Print the source root from which LLVM was built. NINDENT NINDENT --obj-root NDENT 0.0 NDENT 3.5 Print the object root used to build LLVM. NINDENT NINDENT --bindir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM binaries. NINDENT NINDENT --includedir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM headers. NINDENT NINDENT --libdir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM libraries. NINDENT NINDENT --cxxflags NDENT 0.0 NDENT 3.5 Print the C++ compiler flags needed to use LLVM headers. NINDENT NINDENT --ldflags NDENT 0.0 NDENT 3.5 Print the flags needed to link against LLVM libraries. NINDENT NINDENT --libs NDENT 0.0 NDENT 3.5 Print all the libraries needed to link against the specified LLVM components, including any dependencies. NINDENT NINDENT --libnames NDENT 0.0 NDENT 3.5 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. NINDENT NINDENT --libfiles NDENT 0.0 NDENT 3.5 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. NINDENT NINDENT --components NDENT 0.0 NDENT 3.5 Print all valid component names. NINDENT NINDENT --targets-built NDENT 0.0 NDENT 3.5 Print the component names for all targets supported by this copy of LLVM. NINDENT NINDENT --build-mode NDENT 0.0 NDENT 3.5 Print the build mode used when LLVM was built (e.g. Debug or Release) NINDENT NINDENT
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: all NDENT 0.0 NDENT 3.5 Includes all LLVM libraries. The default if no components are specified. NINDENT NINDENT backend NDENT 0.0 NDENT 3.5 Includes either a native backend or the C backend. NINDENT NINDENT engine NDENT 0.0 NDENT 3.5 Includes either a native JIT or the bitcode interpreter. NINDENT NINDENT
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-2016, LLVM Project Generated by docutils manpage writer.
.