llvm-config
Get various configuration information needed to compile programs which use LLVM. Typically called from build systems, like in Makefiles or configure scripts. More information: https://llvm.org/docs/CommandGuide/llvm-config.html.
- Compile and link an LLVM based program:
clang++ $(llvm-config --cxxflags --ldflags --libs) --output
- Print the
PREFIXof your LLVM installation:
llvm-config --prefix
- Print all targets supported by your LLVM build:
llvm-config --targets-built
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
