Skip to content

Fl_dynload.load_packages in a PPX #3214

@thierry-martinez

Description

@thierry-martinez

Expected Behavior

Fl_dynload.load_packages should load packages, even when used inside a PPX rewriter.

Actual Behavior

Fl_dynload.load_packages fails to load any packages since findlib is not properly initialized in the executable generated for PPX preprocessors: the file findlib_initl.ml-gen, which is generated usually for executable targets that link with findlib.dynload, is not generated for PPX preprocessors.

Reproduction

Specifications

  • Version of dune (output of dune --version): 2.3.1
  • Version of ocaml (output of ocamlc --version) 4.09.0
  • Operating system (distribution and version): Ubuntu 19.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions