Commit 5ee961c1 authored by bardur.arantsson's avatar bardur.arantsson Committed by GitHub
Browse files

Merge pull request #4234 from abooij/haddock-flib-flag

Only build haddock for foreign libraries if requested
parents cd90a319 15c1d48e
......@@ -218,7 +218,7 @@ haddock pkg_descr lbi suffixes flags' = do
version lib
let libArgs' = commonArgs `mappend` libArgs
runHaddock verbosity tmpFileOpts comp platform haddockProg libArgs'
CFLib flib -> do
CFLib flib -> when (flag haddockForeignLibs) $ do
withTempDirectoryEx verbosity tmpFileOpts (buildDir lbi) "tmp" $
\tmp -> do
flibArgs <- fromForeignLib verbosity tmp lbi clbi htmlTemplate
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment