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:
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
--assertion-mode
--bindir
--build-mode
--build-system
--cflags
--cmakedir
--components
--cppflags
--cxxflags
--has-rtti
--help
--host-target
--ignore-libllvm
--includedir
--ldflags
--libdir
--libfiles
--libnames
--libs
--link-shared
--link-static
--obj-root
--prefix
--shared-mode
--system-libs
--targets-built
--version
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
backend
engine
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