Author Topic: Clang with Linux?  (Read 3984 times)

Offline GravityWell

  • Multiple posting newcomer
  • *
  • Posts: 18
Clang with Linux?
« on: December 05, 2012, 01:44:44 am »
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?

Offline jarod42

  • Multiple posting newcomer
  • *
  • Posts: 87
Re: Clang with Linux?
« Reply #1 on: December 05, 2012, 10:33:30 am »
I would say:
Go in Settings... -> compiler and debugger
and copy 'gcc compiler'
and replace then gcc by clang in 'Toolchain executables' tab.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Clang with Linux?
« Reply #2 on: December 05, 2012, 11:12:36 pm »
Or, try the XML compiler branch; it contains a (mostly complete) interface to Clang.