help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is parallelism (-j#) available?


From: Too, Justin A.
Subject: Re: Is parallelism (-j#) available?
Date: Tue, 26 Apr 2011 11:36:02 -0700
User-agent: Microsoft-MacOutlook/14.2.0.101115

Hi Raleigh,

I could use shell variables, but I can't rely on users specifying them,
e.g. NUM_PROCESS=16.  So there's no way to grab the command line that was
used to invoke Make? Mmm...

Thanks, I will have to think of a workaround,
Justin

On 4/26/11 10:46 AM, "Rinehart, Raleigh" <address@hidden> wrote:

>
>
>> -----Original Message-----
>> Sent: Tuesday, April 26, 2011 11:48 AM
>> To: address@hidden
>> Subject: Is parallelism (-j#) available?
>> 
>> Hi all,
>> 
>> We typically run our builds using 'make -j16' and we have several
>>internal
>> programs that need to know what level of parallelism was specified.
>>We're
>> using Makefiles (more specifically, Automake Makefile.am's), but I
>>wouldn't
>> expect the -j to be available as a Makefile variable.  So the question
>>is: how
>> can I get that -j16 within my Makefile?
>> 
>> Thanks,
>> Justin
>
>Hi Justin,
>This question was asked and answered a few months back.
>Short answer is: there is no way within GNU make to get that info.
>
>However could you wrap things with shell scripts and use shell variables
>to achieve what you want?
>
>-raleigh
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]