1LLVM-CONFIG(1)                       LLVM                       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
61          not-yet-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 a
66          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  --compo‐
81       nents.    In   most  cases,  components  correspond  directly  to  LLVM
82       libraries.  Useful "virtual" components include:
83
84       all
85          Includes all LLVM libraries.  The default if no components are spec‐
86          ified.
87
88       backend
89          Includes either a native backend or the C backend.
90
91       engine
92          Includes either a native JIT or the bitcode interpreter.
93

EXIT STATUS

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

AUTHOR

99       Maintained by The LLVM Team (http://llvm.org/).
100
102       2003-2020, LLVM Project
103
104
105
106
1077                                 2020-02-15                    LLVM-CONFIG(1)
Impressum