From ce8b7c85f810131396e11997e9981b7d55897a02 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Sun, 3 Feb 2019 09:16:44 +0100 Subject: [PATCH] android: config.h: Add option to disable minidumps, default it to off Porting of commit 7e4b0fae ("Add cmake option to disable minidumps, default it to off") plus some other options that are to be set on (1) or off (0) Fixes the following building error: external/llvm80/lib/Support/Process.cpp:88:35: error: use of undeclared identifier 'LLVM_ENABLE_CRASH_DUMPS' static bool coreFilesPrevented = !LLVM_ENABLE_CRASH_DUMPS; ^ 1 error generated. --- llvm/device/include/llvm/Config/config.h | 9 +++++++++ llvm/host/include/llvm/Config/config.h | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/llvm/device/include/llvm/Config/config.h b/llvm/device/include/llvm/Config/config.h index 7bc7da6ad50..3b3600072fa 100644 --- a/llvm/device/include/llvm/Config/config.h +++ b/llvm/device/include/llvm/Config/config.h @@ -7,6 +7,15 @@ /* Bug report URL. */ #define BUG_REPORT_URL "http://llvm.org/bugs/" +/* Define to 1 to enable backtraces, and to 0 otherwise. */ +#define ENABLE_BACKTRACES 0 + +/* Define to 1 to enable crash overrides, and to 0 otherwise. */ +#define ENABLE_CRASH_OVERRIDES 0 + +/* Define to 1 to enable crash memory dumps, and to 0 otherwise. */ +#define LLVM_ENABLE_CRASH_DUMPS 0 + /* Relative directory for resource files */ #define CLANG_RESOURCE_DIR "" diff --git a/llvm/host/include/llvm/Config/config.h b/llvm/host/include/llvm/Config/config.h index 3c5c36e37d5..cac3c69a253 100644 --- a/llvm/host/include/llvm/Config/config.h +++ b/llvm/host/include/llvm/Config/config.h @@ -7,6 +7,15 @@ /* Bug report URL. */ #define BUG_REPORT_URL "http://llvm.org/bugs/" +/* Define to 1 to enable backtraces, and to 0 otherwise. */ +#define ENABLE_BACKTRACES 0 + +/* Define to 1 to enable crash overrides, and to 0 otherwise. */ +#define ENABLE_CRASH_OVERRIDES 0 + +/* Define to 1 to enable crash memory dumps, and to 0 otherwise. */ +#define LLVM_ENABLE_CRASH_DUMPS 0 + /* Relative directory for resource files */ #define CLANG_RESOURCE_DIR "" -- 2.11.0