Skip to content

Flag disable_dynamically_linked_foreign_archives seems to default to "true", in switches #3262

@corwin-of-amber

Description

@corwin-of-amber

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

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