Reinhard Tartler <[email protected]> writes: > > on Linux, try this: > $ getconf _NPROCESSORS_ONLN > > For other systems, I'd suggest to just not set compile-command (by default).
Thanks that works, maybe something like this could be done: - if LIBAV_MAKEOPTS exists use it - otherwise try to call getconf _PROCESS_ONLN - otherwise just set to "make -k" But setting it just to "make" doesn't hurt anyone, so I don't see why not setting it by default. Compiling within emacs is really convenient, but if one doesn't do that the compile-command variable never comes in the way anyway, and it's only defined in that directory. The only problem that I just remembered is that the compile-command should be set to something like compile-command . "cd $LIBAV_DIR && make", only make would start the compilation in the current directory, and not the libav root directory. If you know better ways without using the environment variable they're welcome :) There are in theory ways to find the root project (finding the .git for example) but they would involve more code, if you have a simple solution that doesn't involve an environment variable it would be better... _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
