From ac306cf148458d1fe9581331c8c0fd26229ed64e Mon Sep 17 00:00:00 2001 From: pixel <35269695+pixelcmtd@users.noreply.github.com> Date: Tue, 14 Sep 2021 11:28:59 +0200 Subject: [PATCH] llvm-config: add page (#6498) --- pages/common/llvm-config.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/common/llvm-config.md diff --git a/pages/common/llvm-config.md b/pages/common/llvm-config.md new file mode 100644 index 0000000000..53593e6cc1 --- /dev/null +++ b/pages/common/llvm-config.md @@ -0,0 +1,17 @@ +# 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: . + +- Compile and link an LLVM based program: + +`clang++ $(llvm-config --cxxflags --ldflags --libs) --output {{path/to/output_executable}} {{path/to/source.cc}}` + +- Print the `PREFIX` of your LLVM installation: + +`llvm-config --prefix` + +- Print all targets supported by your LLVM build: + +`llvm-config --targets-built`