build: disable ICF for mksnapshot

Refs: 5447267
Co-authored-by: Michaël Zasso <targos@protonmail.com>
PR-URL: https://github.com/nodejs/node/pull/54077
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Leszek Swirski 2024-04-12 15:29:09 +02:00 committed by Michaël Zasso
parent 525b3f22d1
commit 9d0748c5df
No known key found for this signature in database
GPG key ID: 770F7A9A5AE15600
3 changed files with 42 additions and 1 deletions

View file

@ -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' ],