diff --git a/node.gyp b/node.gyp index ef0c9aa74cb..5bd4f4e6ba2 100644 --- a/node.gyp +++ b/node.gyp @@ -1369,6 +1369,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': [ '