@@ -12,8 +12,9 @@ import Stackage.InstallInfo
12import Stackage.Types
12import Stackage.Types
13import Stackage.Util
13import Stackage.Util
14import System.Exit (ExitCode (ExitSuccess), exitWith)
14import System.Exit (ExitCode (ExitSuccess), exitWith)
15+import System.IO (BufferMode (NoBuffering),
15−import System.IO (IOMode (WriteMode), hPutStrLn,
16+ IOMode (WriteMode), hPutStrLn,
16− withBinaryFile)
17+ hSetBuffering, withBinaryFile)
17import System.Process (rawSystem, runProcess,
18import System.Process (rawSystem, runProcess,
18 waitForProcess)
19 waitForProcess)
@@ -48,6 +49,8 @@ build settings' bp = do
48 let installBuildTool tool = do
49 let installBuildTool tool = do
49 putStrLn $ "Installing build tool: " ++ tool
50 putStrLn $ "Installing build tool: " ++ tool
50 ec <- withBinaryFile "build-tools.log" WriteMode $ \handle -> do
51 ec <- withBinaryFile "build-tools.log" WriteMode $ \handle -> do
52+ hSetBuffering handle NoBuffering
51 let args = addCabalArgs settings BSBuild
54 let args = addCabalArgs settings BSBuild
52 $ "install"
55 $ "install"
53 : ("--cabal-lib-version=" ++ libVersion)
56 : ("--cabal-lib-version=" ++ libVersion)