Skip to content

Commit

Permalink
Fix WORKSPACE setup for hadrian bindist
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Nov 3, 2023
1 parent 0f69a7f commit a3b09e3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,21 @@ load(
"@rules_haskell//haskell:ghc_bindist_hadrian.bzl",
"haskell_register_ghc_bindists_hadrian",
)
load(
"non_module_deps_1.bzl",
"test_cabalopts",
"test_ghcopts",
)

test_ghcopts = [
"-XStandaloneDeriving", # Flag used at compile time
"-threaded", # Flag used at link time
# Used by `tests/repl-flags`
"-DTESTS_TOOLCHAIN_COMPILER_FLAGS",
# this is the default, so it does not harm other tests
"-XNoOverloadedStrings",
]

test_cabalopts = [
# Used by `tests/cabal-toolchain-flags`
"--ghc-option=-DTESTS_TOOLCHAIN_CABALOPTS",
"--haddock-option=--optghc=-DTESTS_TOOLCHAIN_CABALOPTS",
]

haskell_register_ghc_bindists_hadrian(
cabalopts = test_cabalopts,
Expand Down

0 comments on commit a3b09e3

Please sign in to comment.