Download

The latest Release is clang 3.3 (August 2013). The easiest way to get started with clang is to download a packaged version as outlined below.

Mac OS X

clang is the default compiler that ships with Apple's XCode IDE. It's used behind the scenes for compilation, code completion and much more.

But by default the command-line tools are not installed -- so you'll have to grab them yourself. There are two options:

(1) Install the XCode Command Line Tools package

Install the official XCode command line tools. This will give you a stable and tested toolchain install including the clang compiler driver.

This has to be done from within the IDE. Click the Xcode button in the top left of the screen near the Apple logo, then click Preferences, then click Downloads. Hit Install next to Command Line Tools.

(2) Install clang with Homebrew

For a potentially more up-to-date build, you can instead install with homebrew:

1
2
brew update
brew install --HEAD llvm --with-clang

Linux

FreeBSD

Windows

Note that support for the Windows ABI and MSVC ABI is an ongoing effort.