File: smp-tests

package info (click to toggle)
haskell-safe-exceptions 0.1.7.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 136 kB
  • sloc: haskell: 392; makefile: 8
file content (23 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/safe-exceptions.cabal
+++ b/safe-exceptions.cabal
@@ -13,6 +13,10 @@
 extra-source-files:  README.md ChangeLog.md COOKBOOK.md
 cabal-version:       >=1.10
 
+flag tests-single-threaded
+   description: Build tests single-threaded
+   default: False
+
 library
   hs-source-dirs:      src
   exposed-modules:     Control.Exception.Safe
@@ -31,7 +35,8 @@
                      , hspec
                      , safe-exceptions
                      , void
-  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
+  if !flag(tests-single-threaded)
+    ghc-options:         -threaded -rtsopts -with-rtsopts=-N
   default-language:    Haskell2010
 
 source-repository head