File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,21 @@ COMMON_STATIC_LIBS_COPTS = select({
130
130
"-Wno-unknown-pragmas" ,
131
131
"-Wno-sign-compare" ,
132
132
"-fvisibility=hidden" , # Needed for pybind targets
133
- "-Werror" ,
134
133
# ov::Tensor::data method call results in deprecated warning and we use it in multiple places
135
134
"-Wno-deprecated-declarations" ,
135
+ "-Werror" ,
136
+ "-Wimplicit-fallthrough" ,
137
+ "-fcf-protection=full" ,
138
+ "-Wformat" ,
139
+ "-Wformat-security" ,
140
+ "-Werror=format-security" ,
141
+ "-Wl,-z,noexecstack" ,
142
+ "-fPIC" ,
143
+ "-D_GLIBCXX_ASSERTIONS" ,
144
+ "-Wl,-z,relro" ,
145
+ "-Wl,-z,relro,-z,now" ,
146
+ "-Wl,-z,nodlopen" ,
147
+ "-fstack-protector-strong" ,
136
148
],
137
149
"//src:windows" : [
138
150
"/W4" ,
@@ -157,6 +169,7 @@ COMMON_STATIC_LIBS_COPTS = select({
157
169
"/wd4702" ,
158
170
"/wd4267" ,
159
171
"/wd4996" ,
172
+ "/guard:cf" .
160
173
],
161
174
})
162
175
You can’t perform that action at this time.
0 commit comments