mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
doc: use llvm-config for bitcoin-tidy example
An LLVM installation will have `llvm-config` available to query for info. Ask it for the `--cmakedir`, and use that in our bitcoin-tidy example, rather than listing multiple different (potential) paths per distro/OS etc.
This commit is contained in:
parent
492257019d
commit
d82bb90a5b
1 changed files with 5 additions and 2 deletions
|
@ -3,6 +3,9 @@
|
|||
Example Usage:
|
||||
|
||||
```bash
|
||||
cmake -S . -B build -DLLVM_DIR=/path/to/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release
|
||||
make -C build -j$(nproc)
|
||||
cmake -S . -B build -DLLVM_DIR=$(llvm-config --cmakedir) -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
cmake --build build -j$(nproc)
|
||||
|
||||
cmake --build build --target bitcoin-tidy-tests -j$(nproc)
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue