Skip to content

Commit fac35a0

Browse files
committed
Disable dynamic in release build
1 parent 241aa26 commit fac35a0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
echo "tests: false" >> cabal.project.local
4949
echo "benchmarks: false" >> cabal.project.local
5050
51+
- name: Disable -dynamic
52+
run: |
53+
echo "package haskell-language-server" >> cabal.project.local
54+
echo " flags: -dynamic" >> cabal.project.local
55+
5156
- uses: ./.github/actions/setup-build
5257
with:
5358
ghc: ${{ matrix.ghc }}

haskell-language-server.cabal

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ flag brittany
208208
default: True
209209
manual: True
210210

211+
flag dynamic
212+
description: Build with the dyn rts
213+
default: True
214+
manual: True
215+
211216
common example-plugins
212217
hs-source-dirs: plugins/default/src
213218
other-modules: Ide.Plugin.Example,
@@ -354,7 +359,6 @@ executable haskell-language-server
354359
other-modules: Plugins
355360

356361
ghc-options:
357-
-dynamic
358362
-threaded
359363
-- allow user RTS overrides
360364
-rtsopts
@@ -365,6 +369,8 @@ executable haskell-language-server
365369
-Wno-unticked-promoted-constructors
366370
if flag(pedantic)
367371
ghc-options: -Werror
372+
if flag(dynamic)
373+
ghc-options: -dynamic
368374

369375
build-depends:
370376
, aeson

0 commit comments

Comments
 (0)