From b465bbffb9d15dd76cd9d0c46e098ee60ace4f20 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 4 Jun 2012 02:37:26 +0200 Subject: Added --with_threaded configuration flag Fixes #36 --- xmobar.cabal | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'xmobar.cabal') 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 -- cgit v1.2.3