News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Clang with Linux?

Started by GravityWell, December 05, 2012, 01:44:44 AM

Previous topic - Next topic

GravityWell

I was hoping to be able to switch between GCC and Clang under Linux so I could take advantage of Clang's improved error reporting, but LLVM/Clang is not a compiler option in CB. I saw the older threads about Clang support, but the posts seems to revolve around Windows, so I'm not clear if there is any way to get Clang working with Codeblocks under Linux. Any pointers?

jarod42

I would say:
Go in Settings... -> compiler and debugger
and copy 'gcc compiler'
and replace then gcc by clang in 'Toolchain executables' tab.

Alpha

Or, try the XML compiler branch; it contains a (mostly complete) interface to Clang.