diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2012-06-04 02:37:26 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2012-06-04 02:37:26 +0200 |
commit | b465bbffb9d15dd76cd9d0c46e098ee60ace4f20 (patch) | |
tree | 9b74716c616ec4d477d15c6c0c370b6da2755440 /xmobar.cabal | |
parent | c87df01f1d1eef7ccd5fb1d03282c6cdb341ce5b (diff) | |
download | xmobar-b465bbffb9d15dd76cd9d0c46e098ee60ace4f20.tar.gz xmobar-b465bbffb9d15dd76cd9d0c46e098ee60ace4f20.tar.bz2 |
Added --with_threaded configuration flag
Fixes #36
Diffstat (limited to 'xmobar.cabal')
-rw-r--r-- | xmobar.cabal | 13 |
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 |