build cleanrly when benchmark flag is not enabled
This commit is contained in:
parent
fc3fd0cfe0
commit
5ba14b5095
3 changed files with 16 additions and 6 deletions
|
@ -120,9 +120,7 @@ import qualified Command.WebApp
|
|||
import qualified Command.Test
|
||||
import qualified Command.FuzzTest
|
||||
import qualified Command.TestRemote
|
||||
#ifdef WITH_BENCHMARK
|
||||
import qualified Command.Benchmark
|
||||
#endif
|
||||
|
||||
cmds :: Parser TestOptions -> TestRunner -> MkBenchmarkGenerator -> [Command]
|
||||
cmds testoptparser testrunner mkbenchmarkgenerator =
|
||||
|
@ -229,10 +227,8 @@ cmds testoptparser testrunner mkbenchmarkgenerator =
|
|||
, Command.Test.cmd testoptparser testrunner
|
||||
, Command.FuzzTest.cmd
|
||||
, Command.TestRemote.cmd
|
||||
#ifdef WITH_BENCHMARK
|
||||
, Command.Benchmark.cmd $
|
||||
mkbenchmarkgenerator $ cmds testoptparser testrunner (\_ _ -> return noop)
|
||||
#endif
|
||||
]
|
||||
|
||||
run :: Parser TestOptions -> TestRunner -> MkBenchmarkGenerator -> [String] -> IO ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue