LLVM's Clang Now Successfully Builds Qt
Written by Michael Larabel in Qt on 11 April 2011 at 09:31 AM EDT. 13 Comments
A week after the release of LLVM 2.9 with Clang, it now appears that it's successfully building the Qt library. Not only is Clang being boot-strapped and compiling Qt4, but it's also building the WebKit module. Once everything's built, it's working and even the Flash module is working from within there.

Though it appears the LLVM/Clang-built version is slightly slower than the Nokia-supplied binary at this time and is also slower than Chromium.

These Clang for Qt reports are coming from this blog post. Qt Creator is also now building under Clang.

This puts LLVM/Clang one step closer to being able to build the KDE Software Compilation.

Other accomplishments for this open-source Apple-sponsored compiler using the Low-Level Virtual Machine include it being self-hosting, building the Boost libraries, building much of the FreeBSD base, and even building the Linux kernel.

In terms of LLVM/Clang building the Linux kernel, it can't build a mainline vanilla kernel but does require various patches and other works. Last week at the Linux Foundation Collaboration Summit following our LLVM benchmarking talk there was a presentation about the state of using Clang for building the Linux kernel. Some kernel modules and key components (such as Xen and KVM) also won't build under Clang at this point.

About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Qt News
Popular News
Trending Reviews & Featured Articles