File: no--N

package info (click to toggle)
haskell-genvalidity 1.1.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, trixie
  • size: 128 kB
  • sloc: haskell: 942; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 638 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
--- a/genvalidity.cabal
+++ b/genvalidity.cabal
@@ -61,6 +61,10 @@ library
     , validity >=0.12.1
   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
@@ -72,7 +76,10 @@ test-suite genvalidity-test
       Paths_genvalidity
   hs-source-dirs:
       test
-  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
+  if flag(smp)
+    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
+  else
+    ghc-options: -threaded -Wall
   build-depends:
       QuickCheck
     , base >=4.13 && <5