on master help sign in
Don't worry about core executables
commit29230aa36676f907679c4698b1a4dfc8d5f3de20 authorMichael Snoyman <michael@snoyman.com> dateThu 11 Dec 2014, 16:30 (12 years ago) parent31036c1
1 file changed+4−1
Stackage2/PerformBuild.hs+4−1
Stackage2/PerformBuild.hs+4−1
@@ -74,7 +74,9 @@ waitForDeps toolMap packageMap activeComps bp pi action = do
7474 mapM_ checkPackage $ Map.keys $ filterUnused $ sdPackages $ ppDesc $ piPlan pi
7575 forM_ (Map.keys $ filterUnused $ sdTools $ ppDesc $ piPlan pi) $ \exe -> do
7676 case lookup exe toolMap >>= fromNullable . map checkPackage . setToList of
77− Nothing -> throwSTM $ ToolMissing exe
77+ Nothing
78+ | isCoreExe exe -> return ()
79+ | otherwise -> throwSTM $ ToolMissing exe
7880 Just packages -> ofoldl1' (<|>) packages
7981 action
8082 where
@@ -95,6 +97,7 @@ waitForDeps toolMap packageMap activeComps bp pi action = do
9597 unless res $ throwSTM $ DependencyFailed package
9698
9799 isCore = (`member` siCorePackages (bpSystemInfo bp))
100+ isCoreExe = (`member` siCoreExecutables (bpSystemInfo bp))
98101
99102withCounter counter = bracket_
100103 (atomically $ modifyTVar counter (+ 1))