Skip to content

Commit 4486d5f

Browse files
committed
Disable ghcide-bench by default
Introduce a cabal flag to control the building of `ghcide-bench`, which is an internal tool for benchmarking HLS. This fixes a regression, where running `cabal install haskell-language-server` would install `ghcide-bench` as well as the required HLS executables.
1 parent 9565d0b commit 4486d5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

haskell-language-server.cabal

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ flag dynamic
9393
default: True
9494
manual: True
9595

96+
flag ghcide-bench
97+
description: Enable building of the ghcide-bench executable
98+
default: False
99+
manual: True
100+
96101
----------------------------
97102
----------------------------
98103
-- PLUGINS
@@ -2193,6 +2198,8 @@ test-suite ghcide-tests
21932198

21942199

21952200
executable ghcide-bench
2201+
if !flag(ghcide-bench)
2202+
buildable: False
21962203
default-language: GHC2021
21972204
build-depends:
21982205
aeson,

0 commit comments

Comments
 (0)