Expected Behavior
Bytecode executables that depend on foreign libraries should use dynamic loading by default.
Actual Behavior
When defining a context in dune-workspace, Dune falls back to linking with -custom. Adding (disable_dynamically_linked_foreign_archives false) reproduces the normal behavior (as it was in Dune 2.3.1).
Reproduction
Extract this tarball and run dune build --verbose a.bc.
dune-custom-bug.tar.gz
Specifications
- Version of
dune (output of dune --version): 2.4.0
- Version of
ocaml (output of ocamlc --version): 4.08.1
- Operating system (distribution and version): macOS 10.15
Additional information