Skip to content

Commit 71643ac

Browse files
committed
Make static linking of haskell_cabal_binary explicit
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.
1 parent 4028464 commit 71643ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: haskell/cabal.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ haskell_cabal_binary(
21362136
setup_deps = {setup_deps},
21372137
tools = {tools},
21382138
visibility = ["@{workspace}-exe//{name}:__pkg__"],
2139-
cabalopts = ["--ghc-option=-w", "--ghc-option=-optF=-w"],
2139+
cabalopts = ["--ghc-option=-w", "--ghc-option=-optF=-w", "--ghc-option=-static"],
21402140
verbose = {verbose},
21412141
)
21422142
""".format(

0 commit comments

Comments
 (0)