File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,6 @@ build:windows --host_copt=-DNOGDI
215
215
build:windows --copt=/Zc:preprocessor
216
216
build:windows --host_copt=/Zc:preprocessor
217
217
218
- # Misc build options we need for windows.
219
- build:windows --linkopt=/DEBUG
220
- build:windows --host_linkopt=/DEBUG
221
218
build:windows --linkopt=/OPT:REF
222
219
build:windows --host_linkopt=/OPT:REF
223
220
build:windows --linkopt=/OPT:ICF
Original file line number Diff line number Diff line change @@ -132,6 +132,19 @@ LINUX_COMMON_STATIC_LIBS_COPTS = [
132
132
"-Werror" ,
133
133
# ov::Tensor::data method call results in deprecated warning and we use it in multiple places
134
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" ,
135
148
]
136
149
137
150
WINDOWS_COMMON_STATIC_LIBS_COPTS = [
@@ -157,6 +170,7 @@ WINDOWS_COMMON_STATIC_LIBS_COPTS = [
157
170
"/wd4702" ,
158
171
"/wd4267" ,
159
172
"/wd4996" ,
173
+ "/guard:cf" ,
160
174
]
161
175
162
176
COMMON_STATIC_LIBS_COPTS = select ({
You can’t perform that action at this time.
0 commit comments