-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build dynamic executables by default on supported platforms #2245
Comments
hmm could you describe briefly what would be the problem?
would be a reasonable way to do it |
Want to link a closed issue which considered build dinamically prebuilt binaries: #2069 |
This doesn't work well for the reasons outlined in https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/245#note_378797 |
Thanks but the linked issue is about distribution, this issue is about building from source. |
The isssue I described is orthogonal to where this flag is put, be it cabal file, project file or command line. The problem is that we need to install the plugin libs, which requires |
We took the path of building fully statically linked binaries for linux and set a warning for macos, suggesting building dinamically from source, |
No, I still want cabal install HLS to build a dyn linked binary by default |
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-linkingSimilarly, 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:
cabal.project
setting is not a good fit since conditionals are not supported and would not help with B)ghc-options: -dynamic
inhaskell-language-server.cabal
doesn't play well withcabal v2-build
cabal-dynamic.project.local
file would require an extra step and would not help with B) eitherThe text was updated successfully, but these errors were encountered: