Skip to content

feature(melange): allow to set compiler flags just for melange or for ocaml #6470

@jchavarri

Description

@jchavarri

Currently, flags allow to set both OCaml and Melange flags. But if one wants to set flags for either Melange or OCaml libraries in a shared code setup, it's not possible:

  • For OCaml only flags, one can set ocamlc_flags combined with ocamlopt_flags
  • For Melange only flags, it is not possible

It would be nice to have a way to define flags conditionally, e.g. (flags (if (<> %{modes} melange) ...)). Or alternatively, leave flags only for OCaml compilation, and add a new field melange_flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    melangeMelange rules and generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions