[OE-core] [RFC PATCH] cmake: use Ninja backend instead of Make

Burton, Ross ross.burton at intel.com
Wed Jan 17 21:43:35 UTC 2018


On 17 January 2018 at 20:57, Randy MacLeod <randy.macleod at windriver.com>
wrote:

> On 2018-01-17 11:18 AM, Otavio Salvador wrote:
>
>> On Tue, Jan 16, 2018 at 11:25 AM, Ross Burton <ross.burton at intel.com>
>> wrote:
>>
>>> The Ninja backend is faster than Make for large projects (takes three
>>> minutes
>>> off webkitgtk:do_compile for me), so use it by default.
>>>
>>> Signed-off-by: Ross Burton <ross.burton at intel.com>
>>>
>>
>> I tried to test this but it did not apply in master. Could you rebase it?
>>
>>
> On my 64+64 core system that is shared, it reduced a webkit compile
> from ~ 17 minutes to ~12 minutes for just the compile stage. YMMV.
>
> $ cat webkit-before-compile.log
> 3.29user 0.50system 17:39.98elapsed 0%CPU
>   (0avgtext+0avgdata 28532maxresident)k
> 0inputs+176outputs (0major+16335minor)pagefaults 0swaps
>
>
> $ cat webkit-after-compile.log
> 2.70user 0.47system 12:09.24elapsed 0%CPU
>    (0avgtext+0avgdata 28292maxresident)k
> 0inputs+160outputs (0major+14634minor)pagefaults 0swaps
>
> I'm going to try to build world (oe-core + meta-oe + ...).
>

Good win :)

There appears to be a small number of upstreams that break with ninja, so
I'll rework this patch so that the backend is an option but default to
Ninja.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180117/a8a0d789/attachment-0002.html>


More information about the Openembedded-core mailing list