From dfb5dbd6cc5342348fbb46bd117c226d5e8127e4 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 23 Feb 2017 00:54:19 +0100 Subject: Compiling with --with-rtsopts=-V0 to reduce wakeups (issue #89) --- xmobar.cabal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xmobar.cabal b/xmobar.cabal index 8a17579..153d72b 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -74,6 +74,10 @@ flag with_threaded description: Use threaded runtime. default: False +flag with_rtsopts + description: Use -with-rtsopts=-V0 to reduce wakeups + default: True + flag with_uvmeter description: UVMeter only useful to australians. default: False @@ -138,6 +142,9 @@ executable xmobar ghc-options: -threaded cpp-options: -DTHREADED_RUNTIME + if flag(with_rtsopts) + ghc-options: -with-rtsopts=-V0 + if impl (ghc < 7) cpp-options: -DGHC6 -- cgit v1.2.3