aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Windows/Signals.inc
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-11 20:53:25 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-01-11 20:53:25 +0000
commit08713b37c367b9db29058092c46b41981a74ceff (patch)
treea03065a67e943f1b0586e673c352271e46fbd748 /lib/Support/Windows/Signals.inc
parentc8d12eee12bbd0dca3def72d52e410eaf4e61b2d (diff)
Disable the crash reporter when running lit tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Signals.inc')
-rw-r--r--lib/Support/Windows/Signals.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc
index 3a7e90b38e..38308f6abd 100644
--- a/lib/Support/Windows/Signals.inc
+++ b/lib/Support/Windows/Signals.inc
@@ -239,7 +239,7 @@ static void RegisterHandler() {
SetConsoleCtrlHandler(LLVMConsoleCtrlHandler, TRUE);
// Environment variable to disable any kind of crash dialog.
- if (getenv("LLVM_DISABLE_CRT_DEBUG")) {
+ if (getenv("LLVM_DISABLE_CRASH_REPORT")) {
#ifdef _MSC_VER
_CrtSetReportHook(CRTReportHook);
#endif