@@ -12,8 +12,9 @@ import Stackage.InstallInfo
1212import Stackage.Types
1313import Stackage.Util
1414import System.Exit (ExitCode (ExitSuccess), exitWith)
15−import System.IO (IOMode (WriteMode), hPutStrLn,
16− withBinaryFile)
15+import System.IO (BufferMode (NoBuffering),
16+ IOMode (WriteMode), hPutStrLn,
17+ hSetBuffering, withBinaryFile)
1718import System.Process (rawSystem, runProcess,
1819 waitForProcess)
1920
@@ -48,6 +49,8 @@ build settings' bp = do
4849 let installBuildTool tool = do
4950 putStrLn $ "Installing build tool: " ++ tool
5051 ec <- withBinaryFile "build-tools.log" WriteMode $ \handle -> do
52+ hSetBuffering handle NoBuffering
53+
5154 let args = addCabalArgs settings BSBuild
5255 $ "install"
5356 : ("--cabal-lib-version=" ++ libVersion)