From 1eead123e238f4ee41adfbeea77ebf25daadd555 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 25 Sep 2026 00:46:20 +0200 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/65161 Reviewed-By: Antoine du Hamel Reviewed-By: Richard Lau --- tools/v8_gypfiles/toolchain.gypi | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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': {