Skip to content

Commit

Permalink
Make static linking of haskell_cabal_binary explicit
Browse files Browse the repository at this point in the history
The runtime dependency resolution for `haskell_cabal_binary` doesn't
currently support dynamically linked haskell libraries, and expects
executables built by `haskell_cabal_binary` to be statically linked to
haskell dependencies. Make that explicit by an option to cabal.
  • Loading branch information
iteratee committed Apr 7, 2024
1 parent 4028464 commit ad2cbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell/cabal.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,7 @@ haskell_cabal_binary(
setup_deps = {setup_deps},
tools = {tools},
visibility = ["@{workspace}-exe//{name}:__pkg__"],
cabalopts = ["--ghc-option=-w", "--ghc-option=-optF=-w"],
cabalopts = ["--ghc-option=-w", "--ghc-option=-optF=-w", "--ghc-option=-static"],
verbose = {verbose},
)
""".format(
Expand Down

0 comments on commit ad2cbb4

Please sign in to comment.