build cleanrly when benchmark flag is not enabled

This commit is contained in:
Joey Hess 2019-01-05 08:09:28 -04:00
parent fc3fd0cfe0
commit 5ba14b5095
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 16 additions and 6 deletions

View file

@ -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 ()