Merge pull request #232 from DanielG/dev-bench

Add benchmarks to `cabalAllBuildInfo`
This commit is contained in:
Kazu Yamamoto 2014-04-26 09:13:19 +09:00
commit cc3c5bf708

View File

@ -138,11 +138,12 @@ cabalCppOptions dir = do
-- | Extracting all 'BuildInfo' for libraries, executables, and tests.
cabalAllBuildInfo :: PackageDescription -> [BuildInfo]
cabalAllBuildInfo pd = libBI ++ execBI ++ testBI
cabalAllBuildInfo pd = libBI ++ execBI ++ testBI ++ benchBI
where
libBI = map P.libBuildInfo $ maybeToList $ P.library pd
execBI = map P.buildInfo $ P.executables pd
testBI = map P.testBuildInfo $ P.testSuites pd
benchBI = map P.benchmarkBuildInfo $ P.benchmarks pd
----------------------------------------------------------------