Build clang for Eclipse CDT using CMake

Hi,

Has anybody successfully built clang for Eclipse CDT using CMake on windows platform?

If yes please can you share the steps.

Regards,

Sujit Kamthe

Hi,****

Has anybody successfully built clang for Eclipse CDT using CMake on
windows platform?****

If yes please can you share the steps.

I'm not sure what you mean by "for". Do you mean whether anybody has built
clang from Eclipse CDT? Or used Eclipse CDT to drive the debugger to work
on clang?

Cheers,
/Manuel

I mean I want to Use Eclipse CDT for clang development instead of Visual Studio on windows platform.

Is it possible to generate Eclipse CDT project just like it is generated for Visual studio using CMake?

Regards,

Sujit Kamthe

I mean I want to Use Eclipse CDT for clang development instead of Visual
Studio on windows platform.****

Is it possible to generate Eclipse CDT project just like it is generated
for Visual studio using CMake?

Yes. Note that the integration is not as good.

You can also try the Qt Creator.

How do you build clang for QT creator?
Do have some tutorial for it?

Regards,
Sujit Kamthe
BuildBox>KPITCummins Infosystems Ltd|Extn:3102 |Mobile:7709076120

These are my instructions from when I last tried using it. They might
be outdated (feel free to use the latest software versions) but I
think you can get the basic idea.

MinGW installed at C:\MinGW (version 4.6.1)
Qt Creator 2.4.0
CMake 2.8.6

Go to Options -> Build & Run -> General tab -> uncheck both "always
build project before deploying it" and "always deploy project before
running it" (make runs before each debugging session if these are left
on, very annoying), on the CMake tab set the path to cmake.exe

Qt Creator -> Open project -> select CMakeLists.txt from the llvm directory
Select your MinGW generator in the dialog
add "-DCMAKE_BUILD_TYPE=Debug" as an argument (this effectively
creates a Debug configuration that actually works, breakpoints and
stuff)
press "run CMake" -> Finish

Now select clang as your startup project in the lower left corner.