From a26ecdb3e3a47a8faa88c5ef17368caf49c42e50 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 2 Jan 2012 17:42:43 +0000 Subject: [PATCH] true-by-default threaded flag for hledger, allowing non-threaded builds on some debian architectures (Clint Adams) --- hledger/hledger.cabal | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hledger/hledger.cabal b/hledger/hledger.cabal index f26001c77..cdfb52244 100644 --- a/hledger/hledger.cabal +++ b/hledger/hledger.cabal @@ -35,6 +35,10 @@ source-repository head type: darcs location: http://joyful.com/repos/hledger +flag threaded + Description: Build with support for multithreaded execution + Default: True + library -- XXX should set patchlevel here as in Makefile cpp-options: -DPATCHLEVEL=0 @@ -105,8 +109,10 @@ executable hledger Hledger.Cli.Stats -- XXX should set patchlevel here as in Makefile cpp-options: -DPATCHLEVEL=0 - ghc-options: -threaded -W - -- should be the same as above + ghc-options: -W + if flag(threaded) + ghc-options: -threaded + -- should be the same as above build-depends: hledger-lib == 0.17 ,base >= 3 && < 5