Ninja Build Problem - clang-tidy

Hello Team,
I am not able to compile clang-tidy. Could you please help in building and compiling steps

Steps I used

  1. git clone
  2. mkdir build & cd build
  3. cmake -DCMAKE_BUILD_TYPE=Release -G Ninja DLLVM_ENABLE_PROJECTS=“clang;clang-tools-extra” …/llvm
  4. ninja
  5. ninja clang-tools-extra → this is not working

Error:
ninja: error: unknown target ‘clang-tools-extra’

Regards,
Nadaf.

I think step 5 should be

ninja clang-tidy

Leave off step 5.

If you send the ninja (step 4) output to a file, the following will be seen in that file.

[3084/3512] Linking CXX executable bin/clang-tidy

clang-tidy is in

llvm-project/build/bin

Neil Nelson