summaryrefslogtreecommitdiff
path: root/lld/tools
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-09-09 16:51:11 -0700
committerFangrui Song <i@maskray.me>2021-09-09 16:51:11 -0700
commitbcc34ab6c8ab7bdff6c520c824d6d71ddac7a896 (patch)
tree591d6e8613ca5353fbebb26f989c3749ad460a24 /lld/tools
parent38a5bd4115afbe022a99334c7880f30a8ffd7c4a (diff)
downloadllvm-bcc34ab6c8ab7bdff6c520c824d6d71ddac7a896.tar.gz
[lld] Enable ANSI escape code for Windows
Buffered diagnostics need ENABLE_VIRTUAL_TERMINAL_PROCESSING after D87272. Do it unconditionally like FileCheck.
Diffstat (limited to 'lld/tools')
-rw-r--r--lld/tools/lld/lld.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/tools/lld/lld.cpp b/lld/tools/lld/lld.cpp
index 5d6142f5fd35..bfd4370d3f2d 100644
--- a/lld/tools/lld/lld.cpp
+++ b/lld/tools/lld/lld.cpp
@@ -39,6 +39,7 @@
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/PluginLoader.h"
+#include "llvm/Support/Process.h"
#include <cstdlib>
using namespace lld;
@@ -199,6 +200,7 @@ static unsigned inTestVerbosity() {
int main(int argc, const char **argv) {
InitLLVM x(argc, argv);
+ sys::Process::UseANSIEscapeCodes(true);
// Not running in lit tests, just take the shortest codepath with global
// exception handling and no memory cleanup on exit.