OS Manuals

/usr/bin/llvm-config

Development headers for LLVM 17

From llvm-17-dev 17.0.6-r30 (os), captured 2026-11-05 by running llvm-config --help (exit 0). permalink

usage: llvm-config <OPTION>... [<COMPONENT>...]

Get various configuration information needed to compile programs which use
LLVM.  Typically called from 'configure' scripts.  Examples:
  llvm-config --cxxflags
  llvm-config --ldflags
  llvm-config --libs engine bcreader scalaropts

Options:
  --assertion-mode  Print assertion mode of LLVM tree (ON or OFF).
  --bindir          Directory containing LLVM executables.
  --build-mode      Print build mode of LLVM tree (e.g. Debug or Release).
  --build-system    Print the build system used to build LLVM (e.g. `cmake` or `gn`).
  --cflags          C compiler flags for files that include LLVM headers.
  --cmakedir        Directory containing LLVM CMake modules.
  --components      List of all possible components.
  --cppflags        C preprocessor flags for files that include LLVM headers.
  --cxxflags        C++ compiler flags for files that include LLVM headers.
  --has-rtti        Print whether or not LLVM was built with rtti (YES or NO).
  --help            Print a summary of llvm-config arguments.
  --host-target     Target triple used to configure LLVM.
  --ignore-libllvm  Ignore libLLVM and link component libraries instead.
  --includedir      Directory containing LLVM headers.
  --ldflags         Print Linker flags.
  --libdir          Directory containing LLVM libraries.
  --libfiles        Fully qualified library filenames for makefile depends.
  --libnames        Bare library names for in-tree builds.
  --libs            Libraries needed to link against LLVM components.
  --link-shared     Link the components as shared libraries.
  --link-static     Link the component libraries statically.
  --obj-root        Print the object root used to build LLVM.
  --prefix          Print the installation prefix.
  --shared-mode     Print how the provided components can be collectively linked (`shared` or `static`).
  --system-libs     System Libraries needed to link against LLVM components.
  --targets-built   List of all targets currently built.
  --version         Print LLVM version.
Typical components:
  all               All LLVM libraries (default).
  engine            Either a native JIT or a bitcode interpreter.
Options (27)
OptionDescriptionSource
--assertion-modePrint assertion mode of LLVM tree (ON or OFF).help
--bindirDirectory containing LLVM executables.help
--build-modePrint build mode of LLVM tree (e.g. Debug or Release).help
--build-systemPrint the build system used to build LLVM (e.g. `cmake` or `gn`).help
--cflagsC compiler flags for files that include LLVM headers.help
--cmakedirDirectory containing LLVM CMake modules.help
--componentsList of all possible components.help
--cppflagsC preprocessor flags for files that include LLVM headers.help
--cxxflagsC++ compiler flags for files that include LLVM headers.help
--has-rttiPrint whether or not LLVM was built with rtti (YES or NO).help
--helpPrint a summary of llvm-config arguments.help
--host-targetTarget triple used to configure LLVM.help
--ignore-libllvmIgnore libLLVM and link component libraries instead.help
--includedirDirectory containing LLVM headers.help
--ldflagsPrint Linker flags.help
--libdirDirectory containing LLVM libraries.help
--libfilesFully qualified library filenames for makefile depends.help
--libnamesBare library names for in-tree builds.help
--libsLibraries needed to link against LLVM components.help
--link-sharedLink the components as shared libraries.help
--link-staticLink the component libraries statically.help
--obj-rootPrint the object root used to build LLVM.help
--prefixPrint the installation prefix.help
--shared-modePrint how the provided components can be collectively linked (`shared` or `static`).help
--system-libsSystem Libraries needed to link against LLVM components.help
--targets-builtList of all targets currently built.help
--versionPrint LLVM version.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.