File: no--N

package info (click to toggle)
haskell-genvalidity 0.11.0.0-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 148 kB
  • sloc: haskell: 1,379; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 622 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
@@ -62,6 +62,10 @@
     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
@@ -73,7 +77,10 @@
       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.10 && <5