Merge pull request #57 from xmonad/prof-flag

only turn on -prof -auto-all with profiling flag
This commit is contained in:
Peter J. Jones
2016-12-08 11:00:52 -07:00
committed by GitHub

View File

@@ -50,6 +50,11 @@ flag generatemanpage
default: False
manual: True
flag profiling
description: Enable profiling
default: False
manual: True
library
hs-source-dirs: src
exposed-modules: XMonad
@@ -85,7 +90,8 @@ library
-- needed for XMonad.Config's instance Default (XConfig a)
ghc-prof-options: -prof -auto-all
if flag(profiling)
ghc-prof-options: -prof -auto-all
if flag(testing)
buildable: False