Build the benchmarks only if requested

Reviewed By: niteria

Differential Revision: D6172800

fbshipit-source-id: 6ded874ff575d35a564808be2bdf29347b39a3ca
This commit is contained in:
Simon Marlow 2017-10-31 04:05:43 -07:00 committed by Facebook Github Bot
parent 3dbb11f6fe
commit bc1f39f477

View File

@ -151,7 +151,12 @@ test-suite test
default-language: Haskell2010
flag bench
default: False
executable monadbench
if !flag(bench)
buildable: False
default-language:
Haskell2010
hs-source-dirs:
@ -169,6 +174,8 @@ executable monadbench
-O2 -main-is MonadBench -rtsopts
executable cachebench
if !flag(bench)
buildable: False
default-language:
Haskell2010
hs-source-dirs: