Skip to content

Commit d82bb90

Browse files
committed
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.
1 parent 4922570 commit d82bb90

File tree

1 file changed

+5
-2
lines changed
  • contrib/devtools/bitcoin-tidy

1 file changed

+5
-2
lines changed

contrib/devtools/bitcoin-tidy/README

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Example Usage:
44

55
```bash
6-
cmake -S . -B build -DLLVM_DIR=/path/to/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release
7-
make -C build -j$(nproc)
6+
cmake -S . -B build -DLLVM_DIR=$(llvm-config --cmakedir) -DCMAKE_BUILD_TYPE=Release
7+
8+
cmake --build build -j$(nproc)
9+
10+
cmake --build build --target bitcoin-tidy-tests -j$(nproc)
811
```

0 commit comments

Comments
 (0)