File: threaded-option.diff

package info (click to toggle)
haskell-aeson 0.6.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 616 kB
  • sloc: haskell: 2,447; python: 67; makefile: 15
file content (24 lines) | stat: -rw-r--r-- 425 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
--- a/aeson.cabal
+++ b/aeson.cabal
@@ -101,6 +101,10 @@
   description: build TH bits
   default: True
 
+flag threaded
+  description: build threaded
+  default: True
+
 library
   exposed-modules:
     Data.Aeson
@@ -152,7 +156,9 @@
   main-is:        Properties.hs
 
   ghc-options:
-    -Wall -threaded -rtsopts
+    -Wall -rtsopts
+  if flag(threaded)
+      ghc-options: -threaded
 
   build-depends:
     QuickCheck,