Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse CDT and Clang
Eclipse CDT and Clang [message #1349796] Mon, 12 May 2014 10:56 Go to next message
Pau Treeman is currently offline Pau TreemanFriend
Messages: 1
Registered: May 2014
Junior Member
Hi,

I have built clang compiler yesterday. How do I use it in Eclipse CDT? When I try to create a project only gcc appears for selection?
Re: Eclipse CDT and Clang [message #1384316 is a reply to message #1349796] Wed, 28 May 2014 17:52 Go to previous message
Programmist Setevik is currently offline Programmist SetevikFriend
Messages: 12
Registered: January 2013
Junior Member
I suggest using "Makefile" projects - these have their own Makefiles and Eclipse would simply execute "make" to build/run these.

Inside of Makefile, set:
#############
CC=clang++
CXX=clang++

For better performance, assuming you have multiple cores/CPUs, enable parallel build via "-j n" make setting, matching number of cores you have.
Previous Topic:Automatically Add Braces
Next Topic:Text highlight
Goto Forum:
  


Current Time: Thu Apr 25 11:37:30 GMT 2024

Powered by FUDForum. Page generated in 0.02891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top