summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/llvm-config.pod
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-03-23 23:22:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-03-23 23:22:16 +0000
commit647058de00e9f5728abe6f8ed41e3bacf9ffd1e6 (patch)
tree59d1332f931c133bfa09fef63cd767854b799792 /llvm/docs/CommandGuide/llvm-config.pod
parent972bea5c698ad5248d48aa2164bd0f34c8e110cb (diff)
downloadbcm5719-llvm-647058de00e9f5728abe6f8ed41e3bacf9ffd1e6.tar.gz
bcm5719-llvm-647058de00e9f5728abe6f8ed41e3bacf9ffd1e6.zip
Documentation for llvm-config by Eric Kidd.
llvm-svn: 27006
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-config.pod')
-rw-r--r--llvm/docs/CommandGuide/llvm-config.pod113
1 files changed, 113 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-config.pod b/llvm/docs/CommandGuide/llvm-config.pod
new file mode 100644
index 00000000000..49922847797
--- /dev/null
+++ b/llvm/docs/CommandGuide/llvm-config.pod
@@ -0,0 +1,113 @@
+=pod
+
+=head1 NAME
+
+llvm-config - Print LLVM compilation options
+
+=head1 SYNOPSIS
+
+B<llvm-config> I<option> [I<components>...]
+
+=head1 DESCRIPTION
+
+B<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.
+
+=head1 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`
+
+=head1 OPTIONS
+
+=over
+
+=item B<--version>
+
+Print the version number of LLVM.
+
+=item B<--help>
+
+Print a summary of B<llvm-config> arguments.
+
+=item B<--prefix>
+
+Print the installation prefix for LLVM.
+
+=item B<--bindir>
+
+Print the installation directory for LLVM binaries.
+
+=item B<--includedir>
+
+Print the installation directory for LLVM headers.
+
+=item B<--libdir>
+
+Print the installation directory for LLVM libraries.
+
+=item B<--cxxflags>
+
+Print the C++ compiler flags needed to use LLVM headers.
+
+=item B<--ldflags>
+
+Print the flags needed to link against LLVM libraries.
+
+=item B<--libs>
+
+Print all the libraries needed to link against the specified LLVM
+I<components>, including any dependencies.
+
+=item B<--libnames>
+
+Similar to B<--libs>, but prints the bare filenames of the libraries
+without B<-l> or pathnames. Useful for linking against a not-yet-installed
+copy of LLVM.
+
+=item B<--components>
+
+Print all valid component names.
+
+=item B<--targets-built>
+
+Print the component names for all targets supported by this copy of LLVM.
+
+=back
+
+=head1 COMPONENTS
+
+To print a list of all available components, run B<llvm-config
+--components>. In most cases, components correspond directly to LLVM
+libraries. Useful "virtual" components include:
+
+=over
+
+=item B<all>
+
+Includes all LLVM libaries. The default if no components are specified.
+
+=item B<backend>
+
+Includes either a native backend or the C backend.
+
+=item B<engine>
+
+Includes either a native JIT or the bytecode interpreter.
+
+=back
+
+=head1 EXIT STATUS
+
+If B<llvm-config> succeeds, it will exit with 0. Otherwise, if an error
+occurs, it will exit with a non-zero value.
+
+=head1 AUTHORS
+
+Maintained by the LLVM Team (L<http://llvm.org>).
+
+=cut
OpenPOWER on IntegriCloud