[libvirt] [PATCH 0/6] Ensure clean compile with clang

Michal Privoznik mprivozn at redhat.com
Mon May 13 17:53:49 UTC 2013


On 13.05.2013 18:09, Daniel P. Berrange wrote:
> On Mon, May 13, 2013 at 01:17:21PM +0100, Daniel P. Berrange wrote:
>> From: "Daniel P. Berrange" <berrange at redhat.com>
>>
>> There are various problems building libvirt with clang,
>> which mostly revolve around compiler warning handling.
>> This series fixes all the problems I see with clang
>> 3.2 on a Fedora 19 x86_64 host.
> 
> FYI, I measured the following compile times for the src/
> directory
> 
>     GCC: 2 minutes 40 seconds
>   CLang: 1 minute 50 seconds
> 
> So Clang cuts approx 30% off the GCC compile time, which is
> quite nice. I might have to switch to running clang by
> default for libvirt :-)
> 
> Daniel
> 

FYI:

./autogen --system:   4m40.064s
make -j5 all :        1m22.870s

so I think compilation is not the major time consumer here :)

Michal




More information about the libvir-list mailing list