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>
This commit is contained in:
Joyee Cheung authored and Antoine du Hamel committed 2026-10-04 22:40:49 +02:00
1 parent ea86967557
commit 1eead123e2
1 file changed
+12
+12
View File
@@ -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': {