Skip to content

Commit

Permalink
feat(compiler): Enable debug info in binary output (#2086)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Apr 6, 2024
1 parent 263993d commit 8555853
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/src/codegen/emitmod.re
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ let emit_module = ({asm, signature}, outfile) => {
output_string(oc, asm_string);
close_out(oc);
};
switch (Config.profile^) {
| Some(Release) => Binaryen.Settings.set_debug_info(false)
| _ => Binaryen.Settings.set_debug_info(true)
};
let source_map_name =
if (Config.source_map^) {
Some(Filepath.String.basename(outfile) ++ ".map");
Expand Down

0 comments on commit 8555853

Please sign in to comment.