From aaaa17328a2b83fcf6d0183d11f4b7f61f83fb7b Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 7 Nov 2023 15:38:30 +0000 Subject: [PATCH] tools: fix --v8-non-optimized-debug for v18.x Disable SLOW_DCHECKs on v18.x because they don't compile without the patches in https://bugs.chromium.org/p/v8/issues/detail?id=12887 if used in constexpr, which can happen in other floated patches. --- tools/v8_gypfiles/features.gypi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 82c95b4d6db5ee..e4531fd38ba8f3 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -76,6 +76,11 @@ # Set to 1 to enable DCHECKs in release builds. 'dcheck_always_on%': 0, + # For v18.x, disable SLOW_DCHECKs because they don't compile without + # the patches in https://bugs.chromium.org/p/v8/issues/detail?id=12887 + # if used in constexpr, which can happen in other floated patches. + 'v8_enable_slow_dchecks%': 0, + # Sets -DV8_ENABLE_FUTURE. 'v8_enable_future%': 0,