Skip to content
Permalink
Browse files
Always add debug_info to compile opts for mocks
  • Loading branch information
ericentin authored and eproxus committed Aug 7, 2017
1 parent 0878f97 commit fcc551e3feaadf0e1f06451adcd7a2928d7bd66d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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),

0 comments on commit fcc551e

Please sign in to comment.