LinuxCommandLibrary

llvm-config

provides configuration information for building against LLVM

TLDR

Show LLVM version

$ llvm-config --version
copy
Show compiler flags
$ llvm-config --cxxflags
copy
Show linker flags
$ llvm-config --ldflags
copy
Show library names
$ llvm-config --libs
copy
Show flags for specific components
$ llvm-config --cxxflags --ldflags --libs core
copy
Show installation prefix
$ llvm-config --prefix
copy

SYNOPSIS

llvm-config [options] [components...]

DESCRIPTION

llvm-config provides configuration information for building against LLVM. Outputs compiler flags, linker flags, and library names needed to compile and link programs using LLVM libraries.

PARAMETERS

--version

Print LLVM version.
--prefix
Print installation prefix.
--cxxflags
Print C++ compiler flags.
--ldflags
Print linker flags.
--libs
Print library names.
--system-libs
Print system library names.
--components
Print available components.
--targets-built
Print available targets.

SEE ALSO

clang(1), llc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community