From 38f933356f9bc226a2dd933c2a1bb73999a57a34 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 27 Jun 2012 15:25:35 -0700 Subject: Use -rtsopts and -threaded. --- pandoc.cabal | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/pandoc.cabal b/pandoc.cabal index ab8640010..d13e9cf60 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -235,10 +235,13 @@ Library Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4 else Build-depends: base >= 3 && < 4 - if impl(ghc >= 6.12) - Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output + if impl(ghc >= 7.0.1) + Ghc-Options: -O2 -rtsopts -threaded -Wall -fno-warn-unused-do-bind -dno-debug-output else - Ghc-Options: -O2 -Wall + if impl(ghc >= 6.12) + Ghc-Options: -O2 -Wall -threaded -fno-warn-unused-do-bind -dno-debug-output + else + Ghc-Options: -O2 -Wall -threaded if impl(ghc >= 7.0.1) Ghc-Prof-Options: -auto-all -caf-all -rtsopts else @@ -340,10 +343,13 @@ Executable pandoc Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4 else Build-depends: base >= 3 && < 4 - if impl(ghc >= 6.12) - Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output + if impl(ghc >= 7.0.1) + Ghc-Options: -O2 -rtsopts -threaded -Wall -fno-warn-unused-do-bind -dno-debug-output else - Ghc-Options: -O2 -Wall + if impl(ghc >= 6.12) + Ghc-Options: -O2 -Wall -threaded -fno-warn-unused-do-bind -dno-debug-output + else + Ghc-Options: -O2 -Wall -threaded if impl(ghc >= 7.0.1) Ghc-Prof-Options: -auto-all -caf-all -rtsopts else @@ -404,10 +410,13 @@ Executable test-pandoc Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4 else Build-depends: base >= 3 && < 4 - if impl(ghc >= 6.12) - Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output + if impl(ghc >= 7.0.1) + Ghc-Options: -O2 -rtsopts -threaded -Wall -fno-warn-unused-do-bind -dno-debug-output else - Ghc-Options: -O2 -Wall + if impl(ghc >= 6.12) + Ghc-Options: -O2 -Wall -threaded -fno-warn-unused-do-bind -dno-debug-output + else + Ghc-Options: -O2 -Wall -threaded if impl(ghc >= 7.0.1) Ghc-Prof-Options: -auto-all -caf-all -rtsopts else -- cgit v1.2.3