mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-25 09:11:52 -07:00
Revert "remove unnecessary profiling flag"
This reverts commit d065038c8a
.
Put profiling flag back, and comment out 'cabal check' test in .travis.yml
This commit is contained in:
@@ -100,8 +100,9 @@ script:
|
||||
- cabal new-build -w ${HC} ${TEST} ${BENCH} all
|
||||
- if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi
|
||||
|
||||
# cabal check
|
||||
- (cd xmonad-* && cabal check)
|
||||
# We don't do cabal check because it is unhappy about a convenience flag for
|
||||
# building with profiling.
|
||||
# - (cd xmonad-* && cabal check)
|
||||
|
||||
# haddock
|
||||
- rm -rf ./dist-newstyle
|
||||
|
@@ -52,6 +52,11 @@ flag generatemanpage
|
||||
default: False
|
||||
manual: True
|
||||
|
||||
flag profiling
|
||||
description: Enable profiling
|
||||
default: False
|
||||
manual: True
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: XMonad
|
||||
@@ -87,6 +92,10 @@ library
|
||||
extensions: UndecidableInstances
|
||||
-- needed for XMonad.Config's instance Default (XConfig a)
|
||||
|
||||
|
||||
if flag(profiling)
|
||||
ghc-prof-options: -prof -auto-all
|
||||
|
||||
if flag(testing)
|
||||
buildable: False
|
||||
|
||||
|
Reference in New Issue
Block a user