[Insight-developers] Compiler Support (CLang and XCode 4)

Sean McBride sean at rogue-research.com
Mon Apr 18 11:49:59 EDT 2011


On Mon, 18 Apr 2011 15:37:33 +0000, Williams, Norman K said:

>Is anyone building with CLang from XCode 4 (on OS X)
>
>
>I know there are people doing CLang builds, but on OS X there's very
>little upside to using any non-XCode compiler.  Apple recently switched to
>CLang to avoid GCC's new GPL3 license. Unfortunately they also started
>charging for XCode 4, though they still let you download XCode3 freely.

I'm not exactly sure what you're asking.... We have dashboards that use
clang, but it's a clang built from svn, not from Xcode 4.  It can build
ITK, but the generated binaries are corrupt (or something), see:

<http://llvm.org/bugs/show_bug.cgi?id=9395>

Apple didn't switch to clang recently, they switched a few years ago. 
It's still not the default compiler though, because it's C++ support is
still pretty new.  With Xcode 4, the default compiler is llvm-gcc, but
that compiler is a stop-gap until clang is ready.

Or are you talking about CMake's Xcode generator?  I'm not sure if it
plays nice with Xcode 4, I suspect work will be needed.

You can avoid having to use Apple's 'app store' to get Xcode if you join
their dev program, but that's $100.  I agree it sucks that Xcode is no
longer free (as in beer).

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list