Add benchmarks to cabalAllBuildInfo
This commit is contained in:
parent
abc660cdfe
commit
8ac39a3378
@ -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
|
||||
|
||||
----------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user