mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
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:
committed by
Peter Johnson
parent
12e96c6f13
commit
f02bb058bd
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "HAL/HAL.h"
|
||||
|
||||
#include <llvm/raw_ostream.h>
|
||||
|
||||
#include "ErrorsInternal.h"
|
||||
#include "HAL/DriverStation.h"
|
||||
#include "HAL/Errors.h"
|
||||
@@ -204,6 +206,7 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
|
||||
// Second check in case another thread was waiting
|
||||
if (initialized) return true;
|
||||
|
||||
llvm::outs().SetUnbuffered();
|
||||
if (HAL_LoadExtensions() < 0) return false;
|
||||
hal::RestartTiming();
|
||||
HAL_InitializeDriverStation();
|
||||
|
||||
Reference in New Issue
Block a user