Skip to content

Commit

Permalink
add explanatory comment for usage of enabled in melange_rules
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Chávarri <javier.chavarri@gmail.com>
  • Loading branch information
jchavarri committed Mar 8, 2024
1 parent 50d5bee commit ea9def8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dune_rules/melange/melange_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,9 @@ let rec under_melange_emit_target ~sctx ~dir =
| Some stanzas ->
Dune_file.find_stanzas stanzas Melange_stanzas.Emit.key
>>= Memo.List.find_map ~f:(fun (mel : Melange_stanzas.Emit.t) ->
(* In the case where we have two melange.emit stanzas in the same folder,
with one enabled in the current context and one disabled, we want to be
that we pick the enabled one *)
let+ enabled =
let* expander =
let* sctx = sctx in
Expand Down

0 comments on commit ea9def8

Please sign in to comment.