ocaml/dune

Controlling flags for ocamldep (e.g. for specifying keywords)

Open

#11,419 opened on Jan 30, 2025

 (12 comments) (0 reactions) (0 assignees)OCaml (478 forks)github user discovery
buildgood first issuehelp wanted

Repository metrics

Stars
 (1,882 stars)
PR merge metrics
 (Avg merge 1d 20h) (345 merged PRs in 30d)

Description

There will likely be a need to allow specification of flags to ocamldep, depending on the resolution of ocaml/ocaml#13764. Currently, as per the docs, flags can only be specified for ocamlc and ocamlopt.

Alternatively, there could be a special keywords construct that is applied to all tools that use the ocaml lexer/parser version 5.3.0 or later. However, this might collide with keywords being specified in flags.

Contributor guide