Set the llvm standard output stream to be unbuffered. (#678)

This is particularly useful for the simulation when invokved
inside Eclipse.  Otherwise, you won't see the robot starting
message.
This commit is contained in:
Jeremy White
2017-10-27 02:46:56 -05:00
committed by Peter Johnson
parent 12e96c6f13
commit f02bb058bd
2 changed files with 4 additions and 0 deletions

View File

@@ -342,6 +342,7 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
setlinebuf(stdin);
setlinebuf(stdout);
llvm::outs().SetUnbuffered();
prctl(PR_SET_PDEATHSIG, SIGTERM);