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.
This commit is contained in:
Fendor 2024-08-07 09:50:37 +02:00
parent 9565d0b2d0
commit 4486d5f9e8

View File

@ -93,6 +93,11 @@ flag dynamic
default: True
manual: True
flag ghcide-bench
description: Enable building of the ghcide-bench executable
default: False
manual: True
----------------------------
----------------------------
-- PLUGINS
@ -2193,6 +2198,8 @@ test-suite ghcide-tests
executable ghcide-bench
if !flag(ghcide-bench)
buildable: False
default-language: GHC2021
build-depends:
aeson,