The erlc option -MMD will cause the compiler to generate dependencies as a side-effect. This also puts makedep_side_effect into the beam file, causing Meck to use it when recompiling. This causes (or may cause) the mocking to fail if e.g. the destination directory specified by {makedep_output, ...} is not found.
The erlc option
-MMD
will cause the compiler to generate dependencies as a side-effect. This also putsmakedep_side_effect
into the beam file, causing Meck to use it when recompiling. This causes (or may cause) the mocking to fail if e.g. the destination directory specified by{makedep_output, ...}
is not found.