Skip to content

Commit 54b9799

Browse files
authored
fix(NODE-6265): add Spectre Mitigation and CFG (#190)
1 parent 04044d2 commit 54b9799

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

binding.gyp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,24 @@
2121
},
2222
'cflags!': [ '-fno-exceptions' ],
2323
'cflags_cc!': [ '-fno-exceptions' ],
24+
'msvs_configuration_attributes': {
25+
'SpectreMitigation': 'Spectre'
26+
},
2427
'msvs_settings': {
2528
'VCCLCompilerTool': {
2629
'ExceptionHandling': 1,
2730
'AdditionalOptions': [
31+
'/guard:cf',
2832
'/w34244',
2933
'/w34267',
3034
'/ZH:SHA_256'
3135
]
3236
},
37+
'VCLinkerTool': {
38+
'AdditionalOptions': [
39+
'/guard:cf'
40+
]
41+
}
3342
},
3443
'conditions': [
3544
['OS=="mac"', { 'cflags+': ['-fvisibility=hidden'] }],

0 commit comments

Comments
 (0)