Man page generated from reStructuredText.
. . .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]]
..
"LLVM-CONFIG" "1" "2023-10-21" "16" "LLVM"
NAME
llvm-config - Print LLVM compilation options
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
--assertion-mode NDENT 0.0 NDENT 3.5 Print the assertion mode used when LLVM was built (ON or OFF). NINDENT NINDENT --bindir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM binaries. 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 --build-system NDENT 0.0 NDENT 3.5 Print the build system used to build LLVM (e.g. cmake or gn). NINDENT NINDENT --cflags NDENT 0.0 NDENT 3.5 Print the C compiler flags needed to use LLVM headers. NINDENT NINDENT --cmakedir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM CMake modules. NINDENT NINDENT --components NDENT 0.0 NDENT 3.5 Print all valid component names. NINDENT NINDENT --cppflags NDENT 0.0 NDENT 3.5 Print the C preprocessor flags needed to use LLVM headers. NINDENT NINDENT --cxxflags NDENT 0.0 NDENT 3.5 Print the C++ compiler flags needed to use LLVM headers. NINDENT NINDENT --has-rtti NDENT 0.0 NDENT 3.5 Print whether or not LLVM was built with rtti (YES or NO). NINDENT NINDENT --help NDENT 0.0 NDENT 3.5 Print a summary of llvm-config arguments. NINDENT NINDENT --host-target NDENT 0.0 NDENT 3.5 Print the target triple used to configure LLVM. NINDENT NINDENT --ignore-libllvm NDENT 0.0 NDENT 3.5 Ignore libLLVM and link component libraries instead. NINDENT NINDENT --includedir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM headers. NINDENT NINDENT --ldflags NDENT 0.0 NDENT 3.5 Print the flags needed to link against LLVM libraries. NINDENT NINDENT --libdir NDENT 0.0 NDENT 3.5 Print the installation directory for LLVM libraries. 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 --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 --libs NDENT 0.0 NDENT 3.5 Print all the libraries needed to link against the specified LLVM components, including any dependencies. NINDENT NINDENT --link-shared NDENT 0.0 NDENT 3.5 Link the components as shared libraries. NINDENT NINDENT --link-static NDENT 0.0 NDENT 3.5 Link the component libraries statically. NINDENT NINDENT --obj-root NDENT 0.0 NDENT 3.5 Print the object root used to build LLVM. NINDENT NINDENT --prefix NDENT 0.0 NDENT 3.5 Print the installation prefix for LLVM. NINDENT NINDENT --shared-mode NDENT 0.0 NDENT 3.5 Print how the provided components can be collectively linked (shared or static). NINDENT NINDENT --system-libs NDENT 0.0 NDENT 3.5 Print all the system libraries needed to link against the specified LLVM components, including any dependencies. 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 --version NDENT 0.0 NDENT 3.5 Print the version number of LLVM. 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 \(dqvirtual\(dq 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 (https://llvm.org/).
COPYRIGHT
2003-2023, LLVM Project Generated by docutils manpage writer.
.