mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
llvm-config: add page (#6498)
This commit is contained in:
parent
7786008d9e
commit
ac306cf148
1 changed files with 17 additions and 0 deletions
17
pages/common/llvm-config.md
Normal file
17
pages/common/llvm-config.md
Normal file
|
@ -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: <https://llvm.org/docs/CommandGuide/llvm-config.html>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue