Skip to content

Support user-define variables where possible #13501

@giltho

Description

@giltho

It'd be nice to be able to specify variables in the dune-project file such that one could write. Ideally, these variables would also be usable across the project in other dune files.

(define-var min-ocaml-version 5.4.0)

(package
 (name package1)
 (depends
  (ocaml
   (>= %{min-ocaml-version))))

(package
 (name package2)
 (depends
  (ocaml
   (>= %{min-ocaml-version))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions