Skip to content

Dune doesn't use ocamlfind config in default context #1701

@rauanmayemir

Description

@rauanmayemir

If there's no $OCAMLPATH envvar set, dune build will fail because it doesn't rely on findlib.conf in default context.
$OCAMLPATH is only supposed to be an additional search path for package directories.

I stumbled upon this bug while working on making esy's build plan use findlib configs instead of environment variables. The main purpose of it, besides cleaner env, is laying out the ground work for cross-target compilation.

Unless you have other suggestions on which direction to follow, I think dune should respect OCAMLFIND_CONF env var.

Cc: @rgrinberg

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions