Skip to content

Commit 3599540

Browse files
committed
Add more flags for BinSkim
1 parent 856e24c commit 3599540

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

binding.gyp

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,27 @@
55
"sources": [
66
"src/foreground-love.cc"
77
],
8-
'msvs_configuration_attributes': {
9-
'SpectreMitigation': 'Spectre'
8+
"cflags": [
9+
"-O2",
10+
"-D_FORTIFY_SOURCE=2"
11+
],
12+
"msvs_configuration_attributes": {
13+
"SpectreMitigation": "Spectre"
1014
},
11-
'msvs_settings': {
12-
'VCCLCompilerTool': {
13-
'AdditionalOptions': [
14-
'/guard:cf',
15-
'/we4244',
16-
'/we4267',
17-
'/ZH:SHA_256'
15+
"msvs_settings": {
16+
"VCCLCompilerTool": {
17+
"AdditionalOptions": [
18+
"/guard:cf",
19+
"/W3",
20+
"/we4244",
21+
"/we4267",
22+
"/ZH:SHA_256"
1823
]
1924
},
20-
'VCLinkerTool': {
21-
'AdditionalOptions': [
22-
'/guard:cf'
25+
"VCLinkerTool": {
26+
"AdditionalOptions": [
27+
"/DYNAMICBASE",
28+
"/guard:cf"
2329
]
2430
}
2531
}

0 commit comments

Comments
 (0)