[webkit-dev] Configuring for Clang
mrowe at apple.com
Wed Jun 27 02:01:24 PDT 2012
On 2012-06-27, at 01:52, Mark Gilbert <webkit at gallery.co.uk> wrote:
> Hi Folks.
> I have been trying for weeks to build WebKit in 32-bit.
> My system is a MacMini Server with 10.7.4 and latest XCode.
> I update via SVN then use build-webkit. This creates a good working 64bit version.
> However, when I use build-webkit --32-bit or build-webkit ARCHS="i386 x86_64" ONLY_ACTIVE_ARCH=NO I get various build failures which generally seem related to 32bit truncation of 64bit values.
> The folks who have responded to my bug report suggest this is because my system uses GCC when running build-webkit instead of clang.
> I wondered if someone could provide instructions on configuring this machine to use clang instead when running build-webkit.
Your bug report at <https://bugs.webkit.org/show_bug.cgi?id=89815> shows that you're building the release configuration using Xcode 4.1. Xcode 4.1 is sufficiently old that its version of clang has trouble building WebKit, so we fall back to using GCC and LLVM GCC instead. If you upgrade to the latest version of Xcode, currently version 4.3.3, then WebKit should default to building with clang.
Hope this helps,
More information about the webkit-dev