Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
ffbb31e660
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. +4
    -2
      src/rebar_erlc_compiler.erl

+ 4
- 2
src/rebar_erlc_compiler.erl Näytä tiedosto

@ -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.

Ladataan…
Peruuta
Tallenna