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:
Brent Yorgey
2018-03-21 22:22:58 -05:00
parent d065038c8a
commit af3d3818c8
2 changed files with 12 additions and 2 deletions

View File

@@ -100,8 +100,9 @@ script:
- cabal new-build -w ${HC} ${TEST} ${BENCH} all - cabal new-build -w ${HC} ${TEST} ${BENCH} all
- if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi - if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} ${BENCH} all; fi
# cabal check # We don't do cabal check because it is unhappy about a convenience flag for
- (cd xmonad-* && cabal check) # building with profiling.
# - (cd xmonad-* && cabal check)
# haddock # haddock
- rm -rf ./dist-newstyle - rm -rf ./dist-newstyle

View File

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