File: no--N

package info (click to toggle)
haskell-genvalidity 0.5.1.0-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 116 kB
  • sloc: haskell: 777; makefile: 9
file content (27 lines) | stat: -rw-r--r-- 815 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
26
27
Index: b/genvalidity.cabal
===================================================================
--- a/genvalidity.cabal
+++ b/genvalidity.cabal
@@ -60,6 +60,10 @@ library
     ghc-options: -Wno-redundant-constraints
   default-language: Haskell2010
 
+flag smp
+  description:          build test with -N
+  default:              True
+
 test-suite genvalidity-test
   type: exitcode-stdio-1.0
   main-is: Spec.hs
@@ -69,7 +73,10 @@ test-suite genvalidity-test
       Paths_genvalidity
   hs-source-dirs:
       test
-  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing
+  if flag(smp)
+    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing
+  else
+    ghc-options: -threaded -Wall -fno-warn-name-shadowing
   build-depends:
       QuickCheck
     , base