aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-08-11 11:36:15 +0200
committerfanquake <fanquake@gmail.com>2023-08-11 11:36:38 +0200
commit3654d84c6f53e5137f9208851ff904c248b4741f (patch)
tree4c5c45b926357e9a85096803e7af624a7f18f7f0 /contrib
parentb2ec0326fd76e64a6d0d7e4745506b29f60d0be5 (diff)
parentd82bb90a5b9dc1fd48b10514bdcd8f425aced256 (diff)
downloadbitcoin-3654d84c6f53e5137f9208851ff904c248b4741f.tar.xz
Merge bitcoin/bitcoin#28245: doc: use llvm-config for bitcoin-tidy example
d82bb90a5b9dc1fd48b10514bdcd8f425aced256 doc: use llvm-config for bitcoin-tidy example (fanquake) Pull request description: 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. ACKs for top commit: theuni: ACK d82bb90a5b9dc1fd48b10514bdcd8f425aced256. jonatack: ACK d82bb90a5b9dc1fd48b10514bdcd8f425aced256 TheCharlatan: Nice, Re-ACK d82bb90a5b9dc1fd48b10514bdcd8f425aced256 Tree-SHA512: e07e979231f8f000deafce0751bed4b73ff0eff995bec49e90f579c9051cf5859dac5e49554b8219d33b00c81192db979eed98fee1c643a9205ea8babfce2c5d
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)
```