Skip to content

Build dynamic executables by default on supported platforms #2245

Closed
@pepeiborra

Description

@pepeiborra

We want A)git clone .. && cd <dir> && cabal install haskell-language-server to build a -dynamic binary by default on Linux, MacOs and any other supported platforms, excluding Windows, for the reasons outlined in https://github.com/haskell/haskell-language-server/blob/1ba88ab9eca1da29cd4fee7d2084eba4074fbe47/docs/troubleshooting.md#problems-with-dynamic-linking

Similarly, we also want B)cabal unpack haskell-language-server && cd <dir> && cabal install to build dynamic executables.

What's the best way to do this? Summarising the discussion at https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/245:

  1. A cabal.project setting is not a good fit since conditionals are not supported and would not help with B)
  2. A conditional ghc-options: -dynamic in haskell-language-server.cabal doesn't play well with cabal v2-build
  3. A cabal-dynamic.project.local file would require an extra step and would not help with B) either

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions