Re: [Intel-gfx] [PATCH i-g-t 12/12] RFC: meson build system support

2017-09-04 Thread Daniel Vetter
On Mon, Sep 04, 2017 at 04:11:17PM +0300, Jani Nikula wrote: > On Sat, 02 Sep 2017, Daniel Vetter wrote: > > +if cc.has_member('struct sysinfo', 'totalram', > > + prefix : '#include ') > > + config_h.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) > > +endif > > + > >

Re: [Intel-gfx] [PATCH i-g-t 12/12] RFC: meson build system support

2017-09-04 Thread Jani Nikula
On Sat, 02 Sep 2017, Daniel Vetter wrote: > +if cc.has_member('struct sysinfo', 'totalram', > + prefix : '#include ') > + config_h.set('HAVE_STRUCT_SYSINFO_TOTALRAM', 1) > +endif > + > +add_project_arguments('-D_GNU_SOURCE', language : 'c') Just something

Re: [Intel-gfx] [PATCH i-g-t 12/12] RFC: meson build system support

2017-09-04 Thread Daniel Vetter
On Sat, Sep 02, 2017 at 07:04:06PM +0200, Daniel Vetter wrote: > Why? > > Because it's fast. > > Like really, really fast. > > Some data (from a snb laptop, so rather lower-powered): > > - Incremental build after $ touch lib/igt_core.c with meson: 0.6s > It notices that the symbol list of

[Intel-gfx] [PATCH i-g-t 12/12] RFC: meson build system support

2017-09-02 Thread Daniel Vetter
Why? Because it's fast. Like really, really fast. Some data (from a snb laptop, so rather lower-powered): - Incremental build after $ touch lib/igt_core.c with meson: 0.6s It notices that the symbol list of the libigt.so hasn't changed and doesn't bother re-linking the almost 300 binaries