Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg authored and voodoos committed May 15, 2024
1 parent 7973b03 commit 3de9b51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dune_rules/module_compilation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@ let build_cm
Option.value_exn (Obj_dir.Module.cmt_file obj_dir m ~cm_kind ~ml_kind)
in
let annots =
[ "-bin-annot" ]
@
if Version.supports_bin_annot_occurrences ocaml.version
then [ "-bin-annot"; "-bin-annot-occurrences" ]
else [ "-bin-annot" ]
then [ "-bin-annot-occurrences" ]
else []
in
fn :: other_targets, As annots)
else other_targets, Command.Args.empty
Expand Down

0 comments on commit 3de9b51

Please sign in to comment.