Skip to content

Commit

Permalink
fix(NODE-6265): add Spectre Mitigation and CFG (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 authored Jul 15, 2024
1 parent 04044d2 commit 54b9799
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,24 @@
},
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'msvs_configuration_attributes': {
'SpectreMitigation': 'Spectre'
},
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
'AdditionalOptions': [
'/guard:cf',
'/w34244',
'/w34267',
'/ZH:SHA_256'
]
},
'VCLinkerTool': {
'AdditionalOptions': [
'/guard:cf'
]
}
},
'conditions': [
['OS=="mac"', { 'cflags+': ['-fvisibility=hidden'] }],
Expand Down

0 comments on commit 54b9799

Please sign in to comment.