build: derive V8_LOGGING_LEVEL from dcheck_always_on

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65744
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7705483
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
Joyee Cheung authored and GitHub committed 2026-09-17 17:33:54 +00:00
1 parent c2ddf939c0
commit 2dd7e7b772
1 file changed
+13 -1
+13 -1
View File
@@ -461,9 +461,21 @@
'defines': ['V8_ENABLE_SEEDED_ARRAY_INDEX_HASH',],
}],
['dcheck_always_on!=0', {
'defines': ['DEBUG',],
'defines': [
'DEBUG',
'V8_LOGGING_LEVEL=2', # Print file, line, message on fatal checks
],
}, {
'defines': ['NDEBUG',],
'configurations': {
'Debug': {
'defines': ['V8_LOGGING_LEVEL=2',],
},
'Release': {
# Only log message (without file or line) on fatal checks
'defines': ['V8_LOGGING_LEVEL=1',],
},
},
}],
['v8_enable_verify_csa==1', {
'defines': ['ENABLE_VERIFY_CSA',],