diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2020-12-04 18:41:19 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-12-04 18:43:15 +0300 |
commit | 719dfd40889aa50d39d27b3264388768f42b2984 (patch) | |
tree | 4481b55032c690e8d2bf98b5c22d30175f4b075b /build_files/build_environment/cmake/harvest.cmake | |
parent | d07009498ac36d067fbccd61cfbcd51d4e2ba310 (diff) |
macOS deps: Support building clang tidy
This patch builds clang-extra-tools on macOS for the
clang-tidy binary. The script "run-clang-tidy.py" is
also harvested because using the `CMAKE_C[XX]_CLANG_TIDY`
option can miss out some files (like makesrna), and using the
script is faster as it does not compile the files.
Thanks to `@LazyDodo` for the base patch D8502.
Reviewed By: LazyDodo, sebbas, #platform_macos
Differential Revision: https://developer.blender.org/D9450
Diffstat (limited to 'build_files/build_environment/cmake/harvest.cmake')
-rw-r--r-- | build_files/build_environment/cmake/harvest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build_files/build_environment/cmake/harvest.cmake b/build_files/build_environment/cmake/harvest.cmake index 0f9b67a3d44..536907f563d 100644 --- a/build_files/build_environment/cmake/harvest.cmake +++ b/build_files/build_environment/cmake/harvest.cmake @@ -98,6 +98,10 @@ harvest(jpg/include jpeg/include "*.h") harvest(jpg/lib jpeg/lib "libjpeg.a") harvest(lame/lib ffmpeg/lib "*.a") harvest(clang/bin llvm/bin "clang-format") +if(BUILD_CLANG_TOOLS) + harvest(clang/bin llvm/bin "clang-tidy") + harvest(clang/share/clang llvm/share "run-clang-tidy.py") +endif() harvest(clang/include llvm/include "*") harvest(llvm/include llvm/include "*") harvest(llvm/bin llvm/bin "llvm-config") |