From bc1f39f477cf2ed1430b7a8781a5582c084c8c4f Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 31 Oct 2017 04:05:43 -0700 Subject: [PATCH] Build the benchmarks only if requested Reviewed By: niteria Differential Revision: D6172800 fbshipit-source-id: 6ded874ff575d35a564808be2bdf29347b39a3ca --- haxl.cabal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/haxl.cabal b/haxl.cabal index d9de88e..83336be 100644 --- a/haxl.cabal +++ b/haxl.cabal @@ -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: