Skip to content

Commit c69dc67

Browse files
authored
chore: add stack-protector-strong flag (#880)
1 parent 76de66a commit c69dc67

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

binding.gyp

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,26 @@
99
'SpectreMitigation': 'Spectre'
1010
},
1111
'msvs_settings': {
12-
'VCCLCompilerTool': {
13-
'AdditionalOptions': [
14-
'/guard:cf',
15-
'/sdl',
16-
'/W3',
17-
'/we4146',
18-
'/we4244',
19-
'/we4267',
20-
'/ZH:SHA_256'
21-
]
22-
},
23-
'VCLinkerTool': {
24-
'AdditionalOptions': [
25-
'/DYNAMICBASE',
26-
'/guard:cf'
27-
]
28-
}
12+
'VCCLCompilerTool': {
13+
'AdditionalOptions': [
14+
'/guard:cf',
15+
'/sdl',
16+
'/W3',
17+
'/we4146',
18+
'/we4244',
19+
'/we4267',
20+
'/ZH:SHA_256'
21+
]
2922
},
23+
'VCLinkerTool': {
24+
'AdditionalOptions': [
25+
'/DYNAMICBASE',
26+
'/guard:cf'
27+
]
28+
}
29+
},
30+
}, {
31+
'cflags': ['-O2', '-fstack-protector-strong'],
3032
}],
3133
],
3234
},
@@ -60,7 +62,7 @@
6062
'libraries': [
6163
'-lutil'
6264
],
63-
'cflags': ['-Wall', '-O2'],
65+
'cflags': ['-Wall'],
6466
'ldflags': [],
6567
'conditions': [
6668
# http://www.gnu.org/software/gnulib/manual/html_node/forkpty.html

0 commit comments

Comments
 (0)