1LLVM-CONFIG(1)                LLVM Command Guide                LLVM-CONFIG(1)
2
3
4

NAME

6       llvm-config - Print LLVM compilation options
7

SYNOPSIS

9       llvm-config option [components...]
10

DESCRIPTION

12       llvm-config makes it easier to build applications that use LLVM.  It
13       can print the compiler flags, linker flags and object libraries needed
14       to link against LLVM.
15

EXAMPLES

17       To link against the JIT:
18
19         g++ `llvm-config --cxxflags` -o HowToUseJIT.o -c HowToUseJIT.cpp
20         g++ `llvm-config --ldflags` -o HowToUseJIT HowToUseJIT.o \
21             `llvm-config --libs engine bcreader scalaropts`
22

OPTIONS

24       --version
25           Print the version number of LLVM.
26
27       -help
28           Print a summary of llvm-config arguments.
29
30       --prefix
31           Print the installation prefix for LLVM.
32
33       --src-root
34           Print the source root from which LLVM was built.
35
36       --obj-root
37           Print the object root used to build LLVM.
38
39       --bindir
40           Print the installation directory for LLVM binaries.
41
42       --includedir
43           Print the installation directory for LLVM headers.
44
45       --libdir
46           Print the installation directory for LLVM libraries.
47
48       --cxxflags
49           Print the C++ compiler flags needed to use LLVM headers.
50
51       --ldflags
52           Print the flags needed to link against LLVM libraries.
53
54       --libs
55           Print all the libraries needed to link against the specified LLVM
56           components, including any dependencies.
57
58       --libnames
59           Similar to --libs, but prints the bare filenames of the libraries
60           without -l or pathnames.  Useful for linking against a not-yet-
61           installed copy of LLVM.
62
63       --libfiles
64           Similar to --libs, but print the full path to each library file.
65           This is useful when creating makefile dependencies, to ensure that
66           a tool is relinked if any library it uses changes.
67
68       --components
69           Print all valid component names.
70
71       --targets-built
72           Print the component names for all targets supported by this copy of
73           LLVM.
74
75       --build-mode
76           Print the build mode used when LLVM was built (e.g. Debug or
77           Release)
78

COMPONENTS

80       To print a list of all available components, run llvm-config
81       --components.  In most cases, components correspond directly to LLVM
82       libraries.  Useful "virtual" components include:
83
84       all Includes all LLVM libaries.  The default if no components are
85           specified.
86
87       backend
88           Includes either a native backend or the C backend.
89
90       engine
91           Includes either a native JIT or the bitcode interpreter.
92

EXIT STATUS

94       If llvm-config succeeds, it will exit with 0.  Otherwise, if an error
95       occurs, it will exit with a non-zero value.
96

AUTHORS

98       Maintained by the LLVM Team (<http://llvm.org>).
99
100
101
102CVS                               2010-05-07                    LLVM-CONFIG(1)
Impressum