OSDN Git Service

android: config.h: Add option to disable minidumps, default it to off
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 3 Feb 2019 08:16:44 +0000 (09:16 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:05 +0000 (13:05 +0200)
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
llvm/host/include/llvm/Config/config.h

index 7bc7da6..3b36000 100644 (file)
@@ -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 ""
 
index 3c5c36e..cac3c69 100644 (file)
@@ -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 ""