Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit deae59a

Browse files
authored
Merge pull request #451 from TylerLeonhardt/tyler/add-cf-and-qspectre
Add cf and qspectre flags
2 parents 0c23704 + 1deafc0 commit deae59a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: binding.gyp

+12-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@
1212
'MACOSX_DEPLOYMENT_TARGET': '10.7',
1313
},
1414
'msvs_settings': {
15-
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
15+
'VCCLCompilerTool': {
16+
'ExceptionHandling': 1,
17+
'AdditionalOptions': [
18+
'/Qspectre',
19+
'/guard:cf'
20+
]
21+
},
22+
'VCLinkerTool': {
23+
'AdditionalOptions': [
24+
'/guard:cf'
25+
]
26+
}
1627
},
1728
'include_dirs': ["<!(node -p \"require('node-addon-api').include_dir\")"],
1829
'sources': [

0 commit comments

Comments
 (0)