Commit 15c1d48e authored by tulcod's avatar tulcod
Browse files

Only build haddock for foreign libraries if requested

We did parse but did not yet use the --foreign-libraries flag for cabal
haddock.
parent cd90a319
......@@ -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