Skip to content
Snippets Groups Projects
Commit 7ed65f5a authored by John Ericson's avatar John Ericson Committed by Marge Bot
Browse files

hadrian: Increase verbosity of certain cabal commands

This is a hack to get around the cabal function we're calling
*decreasing* the verbosity it passes to another function, which is the
stuff we often actually care about. Sigh.

Keeping this a separate commit so if this makes things too verbose it is
easy to revert.
parent db882b57
No related branches found
No related tags found
No related merge requests found
......@@ -194,12 +194,13 @@ copyPackage context@Context {..} = do
C.defaultMainWithHooksNoReadArgs C.autoconfUserHooks gpd
[ "copy", "--builddir", ctxPath, "--target-package-db", pkgDbPath, v ]
-- | Increase by 1 by because 'simpleUserHooks' calls 'lessVerbose'
shakeVerbosityToCabalFlag :: Verbosity -> String
shakeVerbosityToCabalFlag = \case
Diagnostic -> "-v3"
Verbose -> "-v2"
Verbose -> "-v3"
Silent -> "-v0"
_ -> "-v1"
_ -> "-v2"
-- | What type of file is Main
data MainSourceType = HsMain | CppMain | CMain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment