llvm-config
Get various configuration information needed to compile programs which use LLVM. tldr-pages
On several platforms
Several platforms
Get various configuration information needed to compile programs which use LLVM. Typically called from build systems, like in Makefiles or configure scripts.
Compile and link an LLVM based program
clang++ $(llvm-config --cxxflags --ldflags --libs) --output path/to/output_executable path/to/source.ccIdentifyPrint the PREFIX of your LLVM installation
llvm-config --prefixIdentifyPrint all targets supported by your LLVM build
llvm-config --targets-builtIdentify