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

Commit 1deafc0

Browse files
Add cf and qspectre flags
1 parent 0c23704 commit 1deafc0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

binding.gyp

Lines changed: 12 additions & 1 deletion
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)