[Mesa-dev] [PATCH 5/5] travis: use both cores for make/make check

Chad Versace chadversary at chromium.org
Fri Feb 3 17:17:10 UTC 2017


On Thu 02 Feb 2017, Emil Velikov wrote:
> On 2 February 2017 at 01:27, Eric Anholt <eric at anholt.net> wrote:
> > Emil Velikov <emil.l.velikov at gmail.com> writes:
> >
> >> From: Emil Velikov <emil.velikov at collabora.com>
> >>
> >> The instance offers 2 cores, so use them to speed things up.
> >>
> >> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> >
> > They don't just set MAKEFLAGS in the environment?  That's weird.
> >
> From what I've read they don't, plus they do not provide a accurate
> way to get the information.
> 
> > Looks like an alternative would be to set - MAKEFLAGS=-j2 in the "env:"
> > section, but this also works.  Series is:
> >
> MAKEFLAGS would be better indeed. If it works I'll just go ahead with it.

FWIW, I query the number of CPUs when setting MAKEFLAGS in my ~/.profile.
It's worked for me across many Linux distros.

    export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"


More information about the mesa-dev mailing list