about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-09-22 14:57:12 +0200
committersternenseemann <sternenseemann@systemli.org>2022-09-22 15:35:07 +0200
commitc6fb7ad565b59e6dd95caea091075ba44bc16109 (patch)
tree7221c67b757d6ea5232f65f92419e2a38bbea650
parente4b29132f6113e0c75f0346fe171635d5aeaa044 (diff)
fix: force -threaded in test suite to avoid CurlBadFunctionArg error
See also https://github.com/GaloisInc/curl/pull/25, seems to be a
relatively recent development.
-rw-r--r--spacecookie.cabal12
1 files changed, 9 insertions, 3 deletions
diff --git a/spacecookie.cabal b/spacecookie.cabal
index 05e4b5f..178a7b1 100644
--- a/spacecookie.cabal
+++ b/spacecookie.cabal
@@ -40,6 +40,15 @@ common common-settings
                      , directory >= 1.3
                      , filepath-bytestring >=1.4
                      , containers >= 0.6
+  ghc-options:
+      -- Needed by curl to work reliably in the test suite
+      -- https://github.com/GaloisInc/curl/pull/25
+      -threaded
+      -Wall
+      -Wno-orphans
+      -- Limit frequency of the idle GC to every 10s
+      -rtsopts
+      -with-rtsopts=-I10
 
 common gopher-dependencies
   build-depends:       unix >= 2.7
@@ -61,7 +70,6 @@ executable spacecookie
                      , Network.Spacecookie.FileType
                      , Paths_spacecookie
   autogen-modules:     Paths_spacecookie
-  ghc-options:         -Wall -Wno-orphans -rtsopts -with-rtsopts=-I10 -threaded
 
 library
   import:              common-settings, gopher-dependencies
@@ -74,7 +82,6 @@ library
                      , Network.Gopher.Util.Socket
   build-depends:       hxt-unicode >= 9.0
                      , async >= 2.2
-  ghc-options:         -Wall -Wno-orphans
 
 test-suite test
   import:              common-settings
@@ -91,7 +98,6 @@ test-suite test
                      , spacecookie
                      , process >=1.2.0
                      , download-curl >=0.1
-  ghc-options:         -Wall -Wno-orphans
 
 source-repository head
   type: git