summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Process.cpp')
-rw-r--r--llvm/lib/Support/Process.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp
index 3f5a9d722ca..b46edb1a791 100644
--- a/llvm/lib/Support/Process.cpp
+++ b/llvm/lib/Support/Process.cpp
@@ -15,6 +15,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Config/llvm-config.h"
+#include "llvm/Config/config.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"
@@ -86,7 +87,7 @@ static const char colorcodes[2][2][8][10] = {
static bool coreFilesPrevented = false;
bool Process::AreCoreFilesPrevented() {
- return coreFilesPrevented;
+ return !LLVM_ENABLE_CRASH_DUMPS;
}
// Include the platform-specific parts of this class.
OpenPOWER on IntegriCloud