From c7889b5e1d27d45f7d0ae5e87176884b4719ff93 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Wed, 28 Sep 2011 11:06:41 +0200 Subject: [PATCH] Allow disabling the threaded runtime via a cabal flag --- yesod/yesod.cabal | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/yesod/yesod.cabal b/yesod/yesod.cabal index 6ad0e432..f2e4711c 100644 --- a/yesod/yesod.cabal +++ b/yesod/yesod.cabal @@ -57,6 +57,10 @@ extra-source-files: flag ghc7 +flag threaded + default: True + description: Build with support for multithreaded execution + library if flag(ghc7) build-depends: base >= 4.3 && < 5 @@ -103,7 +107,9 @@ executable yesod , blaze-builder >= 0.2 && < 0.4 , filepath >= 1.1 && < 1.3 , process - ghc-options: -Wall -threaded + ghc-options: -Wall + if flag(threaded) + ghc-options: -threaded main-is: main.hs other-modules: Scaffolding.CodeGen Scaffolding.Scaffolder