table of contents
LLVM-CONFIG(1) | LLVM | LLVM-CONFIG(1) |
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¶
--version
-help
--prefix
--src-root
--obj-root
--bindir
--includedir
--libdir
--cxxflags
--ldflags
--libs
--libnames
--libfiles
--components
--targets-built
--build-mode
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 (http://llvm.org/).
COPYRIGHT¶
2003-2017, LLVM Project
2017-06-12 | 3.9 |