Skip to content

Commit 18210b0

Browse files
committed
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>
1 parent 9ad0a0b commit 18210b0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎tools/v8_gypfiles/toolchain.gypi‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,18 @@
517517
},
518518
},
519519
}],
520+
['OS=="win" and clang==1', {
521+
'msvs_settings': {
522+
'VCCLCompilerTool': {
523+
'AdditionalOptions': [
524+
# When compiling with MSVC STL, V8 can exceed the default
525+
# limit of constexpr steps. Increasing it by 4 times to give
526+
# it more room.
527+
'/clang:-fconstexpr-steps=4194304',
528+
],
529+
},
530+
},
531+
}],
520532
['OS=="win" and v8_enable_prof==1', {
521533
'msvs_settings': {
522534
'VCLinkerTool': {

0 commit comments

Comments
 (0)