lkml.org 
[lkml]   [2013]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 48/52] tools/perf/build: Exclude MAKEFLAGS from nested invocation

* Namhyung Kim <namhyung@kernel.org> wrote:

> On Tue, 8 Oct 2013 12:11:18 +0200, Ingo Molnar wrote:
> > In case the user specifies MAKEFLAGS as an environment variable,
> > or uses 'make -jN' explicitly, the options can conflict and result in:
> >
> > BUILD: Doing 'make -j8' parallel build
> > make[1]: warning: -jN forced in submake: disabling jobserver mode.
> > GEN common-cmds.h
> > make[1]: *** write jobserver: Bad file descriptor. Stop.
> >
> > Make sure we invoke the main makefile in a pristine state.
> >
> > Users who want to do something non-standard can use the:
> >
> > make -f Makefile.perf
> >
> > method to invoke the makefile.
>
> Hmm... it'd be great if there's a way to detect -jN option and convert
> it to the JOBS.

I looked hard but couldn't find any solution for that, GNU Make hides it.
It seems to be possible on other Make platforms - so I suspect that will
have to be a feature request to the GNU Make folks ...

Thanks,

Ingo


\
 
 \ /
  Last update: 2013-10-10 08:41    [W:0.095 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site