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
Expected Behavior
Fl_dynload.load_packagesshould load packages, even when used inside a PPX rewriter.Actual Behavior
Fl_dynload.load_packagesfails to load any packages sincefindlibis not properly initialized in the executable generated for PPX preprocessors: the filefindlib_initl.ml-gen, which is generated usually for executable targets that link withfindlib.dynload, is not generated for PPX preprocessors.Reproduction
Specifications
dune(output ofdune --version): 2.3.1ocaml(output ofocamlc --version) 4.09.0