Diego Biurrun <[email protected]> writes: > On Mon, Apr 25, 2011 at 06:10:40PM +0200, Andrea Crotti wrote: >> --- /dev/null >> +++ b/.dir-locals.el >> @@ -0,0 +1,17 @@ >> + >> + (c-mode . >> + ((compile-command . "make -j2") > > I don't know what to use instead, but '-j2' is not ideal. The parameter > should at least be equivalent to the number of available cores. Maybe > we could get the number from an environment variable? >
I think something like this might be better. I didn't find a way to get the number of cores from emacs or in a portable way in general, so it can just grab the env variable. MAKEOPTS is also what is used in gentoo for setting normally -jN, so it might be a good choice, even if maybe FFMPEG_MAKEOPTS would be better to avoid clashes. This: ((compile-command . (concat "make -k" (getenv "MAKEOPTS"))) gives "make -k " if the variable is not set or "make -k -j2" if MAKEOPTS="-j2" for example. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
