Commit 1eead123e23 for nodejs
commit 1eead123e238f4ee41adfbeea77ebf25daadd555
Author: Joyee Cheung <joyeec9h3@gmail.com>
Date: Fri Sep 25 00:46:20 2026 +0200
tools: increase constexpr step limit for MSVC STL
When compiling with MSVC STL, the computation in V8 can exceed
the default limit of constexpr steps. Increasing it by 4 times to
give it more room.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65161
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi
index 44d34a07d05..058580f2ab4 100644
--- a/tools/v8_gypfiles/toolchain.gypi
+++ b/tools/v8_gypfiles/toolchain.gypi
@@ -517,6 +517,18 @@
},
},
}],
+ ['OS=="win" and clang==1', {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'AdditionalOptions': [
+ # When compiling with MSVC STL, V8 can exceed the default
+ # limit of constexpr steps. Increasing it by 4 times to give
+ # it more room.
+ '/clang:-fconstexpr-steps=4194304',
+ ],
+ },
+ },
+ }],
['OS=="win" and v8_enable_prof==1', {
'msvs_settings': {
'VCLinkerTool': {