Browse Source

purge mods loaded during check to see if they need to be recompiled

during compile task before running subsequent tasks
pull/161/head
alisdair sullivan 10 years ago
parent
commit
ffbb31e660
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/rebar_erlc_compiler.erl

+ 4
- 2
src/rebar_erlc_compiler.erl View File

@ -265,9 +265,11 @@ opts_changed(Opts, Target) ->
case code:load_abs(ObjectFile) of
{module, Mod} ->
Compile = Mod:module_info(compile),
%% dialyzer and eunit have trouble without the next two lines
code:delete(Mod),
code:purge(Mod),
lists:sort(Opts) =/= lists:sort(proplists:get_value(options,
Compile,
undefined));
Compile));
{error, nofile} -> true
end.

Loading…
Cancel
Save