How to build a project with clang?

CodeLite installation/troubleshooting forum
starcrescent
CodeLite Curious
Posts: 3
Joined: Wed Nov 27, 2019 7:50 pm
Genuine User: Yes
IDE Question: c++
Contact:

How to build a project with clang?

Post by starcrescent »

I have install both MinGW64 x64 and LLVM 9.0 they show up at Build Settings.
MinGW compiles fine with CodeLite Make Generator.
However, when I swich to clang from project settings CodeLite Make Generator fails to build the project.
"clang++: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]"
I installed Build Tools for Visual Studio 2019 nothing changed.
I switched to NMakefile for MSVS toolset. It did not build either.
"clang++: error: no such file or directory: 'Debugmain.c.o'
clang++: error: no input files"
I installed Cmake swithed the makefile generator and configured it through the plugin
"System cannot find the specified path"

I looked through the forum, wiki, github and stack overflow but all related info is like 5-6 years old.

Is there a guied to setup makefile generator for clang ?

Thanks.