Commit 360a4c37 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Improve needBuilder, see #124.

parent 2ad773b6
......@@ -106,7 +106,7 @@ specified = fmap (not . null) . builderPath
-- If 'laxDependencies' is True then we do not rebuild GHC even if it is out of
-- date (can save a lot of build time when changing GHC).
needBuilder :: Bool -> Builder -> Action ()
needBuilder laxDependencies builder = do
needBuilder laxDependencies builder = whenM (specified builder) $ do
path <- builderPath builder
if laxDependencies && allowOrderOnlyDependency builder
then orderOnly [path]
......
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