Ninja Build Problem - clang-tidy

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Ninja Build Problem - clang-tidy

Vassil Vassilev via cfe-dev
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 <llvm-project>
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.

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Ninja Build Problem - clang-tidy

Vassil Vassilev via cfe-dev
I think step 5 should be

ninja clang-tidy



On 15 Jun 2020, at 22:31, Gousemoodhin Nadaf via cfe-dev <[hidden email]> wrote:


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 <llvm-project>
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.
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Ninja Build Problem - clang-tidy

Vassil Vassilev via cfe-dev
In reply to this post by Vassil Vassilev via cfe-dev

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

On 6/15/20 3:30 PM, Gousemoodhin Nadaf via cfe-dev wrote:
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 <llvm-project>
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.

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev