Enabled debug mode for "shared_library".
To mitigate runtime errors, DCHECK needs to be disabled until relevant bugs are fixed.
This commit is contained in:
Родитель
92e2d6a965
Коммит
7d889fde3b
|
@ -1,7 +1,7 @@
|
|||
root_extra_deps = [ "//chromiumcontent:chromiumcontent" ]
|
||||
is_electron_build = true
|
||||
is_component_build = true
|
||||
is_debug = false
|
||||
is_debug = true
|
||||
symbol_level = 2
|
||||
enable_nacl = false
|
||||
enable_widevine = true
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/base/logging.h b/base/logging.h
|
||||
index c67b937e5b08..e61a35859450 100644
|
||||
--- a/base/logging.h
|
||||
+++ b/base/logging.h
|
||||
@@ -718,7 +718,7 @@ DEFINE_CHECK_OP_IMPL(GT, > )
|
||||
#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
|
||||
#define DCHECK_IS_ON() 0
|
||||
#else
|
||||
-#define DCHECK_IS_ON() 1
|
||||
+#define DCHECK_IS_ON() 0
|
||||
#endif
|
||||
|
||||
// Definitions for DLOG et al.
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/base/logging.h b/src/base/logging.h
|
||||
index e852dde8dd..a57ddf5404 100644
|
||||
--- a/src/base/logging.h
|
||||
+++ b/src/base/logging.h
|
||||
@@ -214,7 +214,7 @@ DEFINE_CHECK_OP_IMPL(GT, > )
|
||||
// The DCHECK macro is equivalent to CHECK except that it only
|
||||
// generates code in debug builds.
|
||||
#ifdef DEBUG
|
||||
-#define DCHECK(condition) CHECK(condition)
|
||||
+#define DCHECK(condition) CHECK((condition) || true)
|
||||
#define DCHECK_EQ(v1, v2) CHECK_EQ(v1, v2)
|
||||
#define DCHECK_NE(v1, v2) CHECK_NE(v1, v2)
|
||||
#define DCHECK_GT(v1, v2) CHECK_GT(v1, v2)
|
Загрузка…
Ссылка в новой задаче