File: no--N

package info (click to toggle)
haskell-safe-exceptions 0.1.7.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: haskell: 444; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- haskell-safe-exceptions-0.1.7.4.orig/safe-exceptions.cabal
+++ haskell-safe-exceptions-0.1.7.4/safe-exceptions.cabal
@@ -13,6 +13,10 @@ build-type:          Simple
 extra-source-files:  README.md ChangeLog.md COOKBOOK.md
 cabal-version:       >=1.10
 
+flag smp
+  description:          build test with -N
+  default:              True
+
 library
   hs-source-dirs:      src
   exposed-modules:     Control.Exception.Safe
@@ -32,7 +36,10 @@ test-suite safe-exceptions-test
                      , safe-exceptions
                      , transformers
                      , void
-  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
+  if flag(smp)
+    ghc-options:         -threaded -rtsopts -with-rtsopts=-N
+  else
+    ghc-options:         -threaded
   default-language:    Haskell2010
 
 source-repository head