Merge pull request #144 from nomeata/master
Allow disabling the threaded runtime via a cabal flag
This commit is contained in:
commit
56f489609f
@ -57,6 +57,10 @@ extra-source-files:
|
|||||||
|
|
||||||
flag ghc7
|
flag ghc7
|
||||||
|
|
||||||
|
flag threaded
|
||||||
|
default: True
|
||||||
|
description: Build with support for multithreaded execution
|
||||||
|
|
||||||
library
|
library
|
||||||
if flag(ghc7)
|
if flag(ghc7)
|
||||||
build-depends: base >= 4.3 && < 5
|
build-depends: base >= 4.3 && < 5
|
||||||
@ -103,7 +107,9 @@ executable yesod
|
|||||||
, blaze-builder >= 0.2 && < 0.4
|
, blaze-builder >= 0.2 && < 0.4
|
||||||
, filepath >= 1.1 && < 1.3
|
, filepath >= 1.1 && < 1.3
|
||||||
, process
|
, process
|
||||||
ghc-options: -Wall -threaded
|
ghc-options: -Wall
|
||||||
|
if flag(threaded)
|
||||||
|
ghc-options: -threaded
|
||||||
main-is: main.hs
|
main-is: main.hs
|
||||||
other-modules: Scaffolding.CodeGen
|
other-modules: Scaffolding.CodeGen
|
||||||
Scaffolding.Scaffolder
|
Scaffolding.Scaffolder
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user