git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: update pcc after merge
commit502d3bb37cf128b9458bd4486de32c04911e57d1 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSat 7 Nov 2015, 10:44 (11 years ago) parent41d055f
1 file changed+2−5
pcc/Main.hs+2−5
pcc/Main.hs+2−5
@@ -62,15 +62,12 @@ compile (PCCOptions input _ outputDir opts usePrefix) = do
6262 hPutStrLn stderr (P.prettyPrintMultipleWarnings (P.optionsVerboseErrors opts) warnings)
6363 let filePathMap = M.fromList $ map (\(fp, P.Module _ _ mn _ _) -> (mn, fp)) ms
6464 makeActions = buildMakeActions outputDir filePathMap usePrefix
65− e <- runMake opts $ P.make makeActions (map snd ms)
65+ (e, warnings') <- runMake opts $ P.make makeActions (map snd ms)
6666 case e of
6767 Left errs -> do
6868 putStrLn (P.prettyPrintMultipleErrors (P.optionsVerboseErrors opts) errs)
6969 exitFailure
70− Right (_, warnings') -> do
71− when (P.nonEmpty warnings') $
72− putStrLn (P.prettyPrintMultipleWarnings (P.optionsVerboseErrors opts) warnings')
73− exitSuccess
70+ Right _ -> exitSuccess
7471
7572readInput :: InputOptions -> IO [(Either P.RebuildPolicy FilePath, String)]
7673readInput InputOptions{..} = forM ioInputFiles $ \inFile -> (Right inFile, ) <$> readUTF8File inFile