[erlang-patches] Emake on SMP
Fri Jan 30 10:39:04 CET 2009
2009/1/29 Nicolas Charpentier <>:
> Here is a proposal to make parallel compilation with emake.
> The patch is based on OTP R12 b5 source code.
> I modified the make:process/3 function in order to let it spawn a process
> per file to compile. The 'main' process wait for the result of all children
> before to return.
> I let an 'after' clause in the receive loop in order to not get stuck if one
> compilation never notify its result.
Sorry, but we cannot accept a timeout. Sooner or later someone compiles
a huge module on a slow machine and the compilation time will exceed
The correct way to handle failing worker processes is to use either monitors
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-patches