diff --git a/node.gyp b/node.gyp index 700606e9061..c69670c49b6 100644 --- a/node.gyp +++ b/node.gyp @@ -1405,6 +1405,12 @@ 'tools/snapshot/node_mksnapshot.cc', ], + 'msvs_settings': { + 'VCLinkerTool': { + 'EnableCOMDATFolding': '1', # /OPT:NOICF + }, + }, + 'conditions': [ ['node_write_snapshot_as_array_literals=="true"', { 'defines': [ 'NODE_MKSNAPSHOT_USE_ARRAY_LITERALS=1' ], diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index d65a5c268e5..a1c7e778557 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1710,6 +1710,24 @@ 'sources': [ '