Skip to content
This repository

Allow disabling the threaded runtime via a cabal flag #144

Merged
merged 1 commit into from over 2 years ago

2 participants

Joachim Breitner Michael Snoyman
Joachim Breitner

As discussed on debian-haskell.

Michael Snoyman snoyberg merged commit 56f4896 into from September 28, 2011
Michael Snoyman snoyberg closed this September 28, 2011
Simon Michael simonmichael referenced this pull request in simonmichael/hledger April 08, 2013
Closed

add a threaded build flag for easier packaging #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 28, 2011
Joachim Breitner Allow disabling the threaded runtime via a cabal flag c7889b5
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  yesod/yesod.cabal
8  yesod/yesod.cabal
@@ -57,6 +57,10 @@ extra-source-files:
57 57
 
58 58
 flag ghc7
59 59
 
  60
+flag threaded
  61
+    default: True
  62
+    description: Build with support for multithreaded execution
  63
+
60 64
 library
61 65
     if flag(ghc7)
62 66
         build-depends:   base                  >= 4.3      && < 5
@@ -103,7 +107,9 @@ executable             yesod
103 107
                      , blaze-builder      >= 0.2          && < 0.4
104 108
                      , filepath           >= 1.1          && < 1.3
105 109
                      , process
106  
-    ghc-options:       -Wall -threaded
  110
+    ghc-options:       -Wall
  111
+    if flag(threaded)
  112
+        ghc-options:    -threaded
107 113
     main-is:           main.hs
108 114
     other-modules:     Scaffolding.CodeGen
109 115
                        Scaffolding.Scaffolder
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.