summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-06-04 02:37:26 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-06-04 02:37:26 +0200
commitb465bbffb9d15dd76cd9d0c46e098ee60ace4f20 (patch)
tree9b74716c616ec4d477d15c6c0c370b6da2755440 /xmobar.cabal
parentc87df01f1d1eef7ccd5fb1d03282c6cdb341ce5b (diff)
downloadxmobar-b465bbffb9d15dd76cd9d0c46e098ee60ace4f20.tar.gz
xmobar-b465bbffb9d15dd76cd9d0c46e098ee60ace4f20.tar.bz2
Added --with_threaded configuration flag
Fixes #36
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal13
1 files changed, 10 insertions, 3 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index e80e8b3..db935f7 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -65,6 +65,10 @@ flag with_mpris
description: MPRIS v1, v2 support
default: False
+flag with_threaded
+ description: Use threaded runtime
+ default: False
+
executable xmobar
hs-source-dirs: src
main-is: Main.hs
@@ -89,9 +93,12 @@ executable xmobar
ghc-options: -funbox-strict-fields -Wall
extra-libraries: Xrandr
- -- Use --disable-optimization configure flag
- -- if impl (ghc == 6.10.1) && arch (x86_64)
- -- ghc-options: -O0
+ if flag(with_threaded)
+ -- -threaded is a workaround 100% CPU busy loop
+ -- (http://hackage.haskell.org/trac/ghc/ticket/4934)
+ -- See also comments in https://github.com/jaor/xmobar/pull/36
+ ghc-options: -threaded
+ cpp-options: -DTHREADED_RUNTIME
if impl (ghc >= 6.12.1)
ghc-options: -fno-warn-unused-do-bind