<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 24, 2017 at 3:11 AM, Austin English <span dir="ltr"><<a href="mailto:austinenglish@gmail.com" target="_blank">austinenglish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On Fri, Feb 24, 2017 at 2:05 AM,  <<a href="mailto:wylda@volny.cz">wylda@volny.cz</a>> wrote:<br>
> Hi,<br>
> i like/use "make -j 1" for log comparison. Can you leave NPROC=1 or allow override?<br>
><br>
> W.<br>
><br>
><br>
<br>
</div></div>Hi Wylda,<br>
<br>
Are you doing that with wineinstall? This doesn't affect normal<br>
./configure && make, only ./tools/wineinstall.<br>
<br>
That said, allowing the user to set it via NPROC or similar would be a<br>
good idea IMO.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
-Austin<br>
GPG: 14FB D7EA A041 937B<br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Is this what you had in mind? I wasn't sure how to document that you could do:</div><div class="gmail_extra"><br></div><div class="gmail_extra">NPROC=50 ./tools/wineinstall</div><div class="gmail_extra"><br></div><div class="gmail_extra">to force 50 parallel processes.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">commit 83321d6452706b5f8f93687ed4e0909aac47fd68</div><div class="gmail_extra">Author: Chris Morgan <<a href="mailto:chmorgan@gmail.com">chmorgan@gmail.com</a>></div><div class="gmail_extra">Date:   Tue Feb 21 17:03:30 2017 -0500</div><div class="gmail_extra"><br></div><div class="gmail_extra">    wineinstall - Add support for parallel builds using 'nproc' to detect cpu count</div><div class="gmail_extra">    </div><div class="gmail_extra">    Parallel builds can greatly reduce the overall build time on modern multi-core processors.</div><div class="gmail_extra">    </div><div class="gmail_extra">    Fall back to two parallel builds in the case where nproc is unavailable, most modern</div><div class="gmail_extra">    processors have at least two cores.</div><div class="gmail_extra">    </div><div class="gmail_extra">    Use the 'NPROC' value defined by the environment if it is not null.</div><div class="gmail_extra"><br></div><div class="gmail_extra">diff --git a/tools/wineinstall b/tools/wineinstall</div><div class="gmail_extra">index e8e22bf..a757343 100755</div><div class="gmail_extra">--- a/tools/wineinstall</div><div class="gmail_extra">+++ b/tools/wineinstall</div><div class="gmail_extra">@@ -143,10 +143,22 @@ echo "in the meantime..."</div><div class="gmail_extra"> echo</div><div class="gmail_extra"> std_sleep</div><div class="gmail_extra"> </div><div class="gmail_extra">+# determine ideal number of parallel processes if NPROC isn't set</div><div class="gmail_extra">+# in the environment</div><div class="gmail_extra">+if [ ! -n $NPROC ]</div><div class="gmail_extra">+then</div><div class="gmail_extra">+    if [ -x `which nproc 2>/dev/null` ]</div><div class="gmail_extra">+    then</div><div class="gmail_extra">+        NPROC=$(nproc --all)</div><div class="gmail_extra">+    else</div><div class="gmail_extra">+        NPROC=2</div><div class="gmail_extra">+    fi</div><div class="gmail_extra">+fi</div><div class="gmail_extra">+</div><div class="gmail_extra"> # try to just make wine, if this fails 'make depend' and try to remake</div><div class="gmail_extra">-if ! { make; }</div><div class="gmail_extra">+if ! { make -j$NPROC; }</div><div class="gmail_extra"> then</div><div class="gmail_extra">-    if ! { make depend && make; }</div><div class="gmail_extra">+    if ! { make depend && make -j$NPROC; }</div><div class="gmail_extra">     then</div><div class="gmail_extra">       echo</div><div class="gmail_extra">       echo "Compilation failed, aborting install."</div><div><br></div></div></div>