[erlang-patches] Fix the erlc -MP flag

Richard Carlsson <>
Mon Jul 9 20:58:59 CEST 2012


I posted this to erlang-bugs before, but got no response, so here's a 
new attempt. This time, the patch also has a test case courtesy of Uwe 
Dauernheim.

Because of a copy-and-paste error in erlc.c, the -MP flag had the same 
effect as -MG. As a workaround, you had to pass +makedep_phony to enable 
the MP option. This patch makes -MP work as intended.

     git fetch git://github.com/richcarl/otp.git fix-MP-compiler-flag


   /Richard


More information about the erlang-patches mailing list