mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 01:01:37 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
22
tldr/llvm-config
Normal file
22
tldr/llvm-config
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user