llvm-config

Get various configuration information needed to compile programs which use LLVM.

TLDR

Compile and link an LLVM based program

$ clang++ $(llvm-config --cxxflags --ldflags --libs) --output [path/to/output_executable] [path/to/source.cc]
copy

Print the PREFIX of your LLVM installation

$ llvm-config --prefix
copy

Print all targets supported by your LLVM build

$ llvm-config --targets-built
copy

Copied to clipboard
Earn up to $40 for learning about crypto currencies