aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-08-09 14:03:20 +0200
committerfanquake <fanquake@gmail.com>2023-08-10 12:39:35 +0200
commitd82bb90a5b9dc1fd48b10514bdcd8f425aced256 (patch)
treeecc08bec2700edd99569906cc12cffff6177c162 /contrib
parent492257019d6d6e0f4051433e510502e8040fd6d2 (diff)
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.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/devtools/bitcoin-tidy/README7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/devtools/bitcoin-tidy/README b/contrib/devtools/bitcoin-tidy/README
index 1669fe98f5..c15e07c4ed 100644
--- a/contrib/devtools/bitcoin-tidy/README
+++ b/contrib/devtools/bitcoin-tidy/README
@@ -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)
```