Tuesday, April 17, 2012

Re: Setting 'make -jN' in makeprg

On Tuesday, April 17, 2012 8:06:34 AM UTC-5, Jan wrote:
> On Sunday, 15 April, 2012 at 12:17:28 BST, John Beckett wrote:
> >let &makeprg = 'make -j'.system('echo -n "$(echo $(grep -c ^processor /proc/cpuinfo)+1 | bc)"')
> >
> >Any thoughts on whether that is correct and useful? The tip is:
>
> Having vim calculate it in such a fashion sounds inefficient to me. I use the MAKEOPTS environment variable. Have if calculated once in your .bash_profile equivalent, if you must.
>

I think the idea would be to have it "just work" on pretty much any system you might use the same config on.

Is MAKEOPTS standard? I currently only compile with multiple processes at work, using a cygwin-based cross-compiler on Windows, or on a Solaris server. Neither make seems to pay any attention to MAKEOPTS. I found this, where someone claims it is Gentoo-specific.

http://askubuntu.com/questions/22408/makeopts-ignored-why

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: