Skip to content

Commit

Permalink
Always add debug_info to compile opts for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ericentin authored and eproxus committed Aug 7, 2017
1 parent 0878f97 commit fcc551e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meck_proc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ backup_original(Mod, NoPassCover, EnableOnLoad) ->
Forms0 = meck_code:abstract_code(meck_code:beam_file(Mod)),
Forms = meck_code:enable_on_load(Forms0, EnableOnLoad),
NewName = meck_util:original_name(Mod),
CompileOpts = meck_code:compile_options(meck_code:beam_file(Mod)),
CompileOpts = [debug_info | meck_code:compile_options(meck_code:beam_file(Mod))],
Renamed = meck_code:rename_module(Forms, NewName),
Binary = meck_code:compile_and_load_forms(Renamed, CompileOpts),

Expand Down

0 comments on commit fcc551e

Please sign in to comment.