bitcoin/contrib/devtools/bitcoin-tidy
fanquake 6c508ac3ff
Merge bitcoin/bitcoin#28258: bitcoin-tidy: fix macOS build
bb3263d3e3 bitcoin-tidy: fix macOS build (Cory Fields)

Pull request description:

  [LLVM uses these options](https://github.com/llvm/llvm-project/blob/main/llvm/cmake/modules/HandleLLVMOptions.cmake#L178) for building as well, so there's precedent.

  Also fix the shared library extension which was incorrectly being set to dylib.

  Thanks to jonatack for reporting and debugging.

ACKs for top commit:
  jonatack:
    ACK bb3263d3e3 tested with arm64 macos 13.5, llvm 16.0.6 and cmake 3.27.2

Tree-SHA512: de7bfd497f38f1565a14d217d0b057cbfa788bdda702b5942b7f0b55947ae5e1c05af13e7d6a073ed036bc4db57035868f180034508b6e084ab9b901a5baaf2f
2023-08-14 13:10:13 +01:00
..
bitcoin-tidy.cpp tidy: Integrate bicoin-tidy clang-tidy plugin 2023-08-03 17:52:24 +01:00
CMakeLists.txt bitcoin-tidy: fix macOS build 2023-08-10 21:14:50 +00:00
example_logprintf.cpp tidy: Integrate bicoin-tidy clang-tidy plugin 2023-08-03 17:52:24 +01:00
logprintf.cpp tidy: Integrate bicoin-tidy clang-tidy plugin 2023-08-03 17:52:24 +01:00
logprintf.h tidy: Integrate bicoin-tidy clang-tidy plugin 2023-08-03 17:52:24 +01:00
README doc: use llvm-config for bitcoin-tidy example 2023-08-10 12:39:35 +02:00

# Bitcoin Tidy

Example Usage:

```bash
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)
```