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 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.