mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
[clangd] Disable new errs()-tie behavior, it's racy.
Reviewers: hokein Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D81538
This commit is contained in:
parent
904f91db5f
commit
4e3a44d42e
@ -585,6 +585,8 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var
|
||||
// Use buffered stream to stderr (we still flush each log message). Unbuffered
|
||||
// stream can cause significant (non-deterministic) latency for the logger.
|
||||
llvm::errs().SetBuffered();
|
||||
// Don't flush stdout when logging, this would be both slow and racy!
|
||||
llvm::errs().tie(nullptr);
|
||||
StreamLogger Logger(llvm::errs(), LogLevel);
|
||||
LoggingSession LoggingSession(Logger);
|
||||
// Write some initial logs before we start doing any real work.
|
||||
|
Loading…
x
Reference in New Issue
Block a user