diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 14e6349..330f20b 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -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. |