Skip to content

Commit b4352a3

Browse files
Add missing linux flags and one missing for windows
1 parent 8931f9b commit b4352a3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

common_settings.bzl

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,21 @@ COMMON_STATIC_LIBS_COPTS = select({
130130
"-Wno-unknown-pragmas",
131131
"-Wno-sign-compare",
132132
"-fvisibility=hidden", # Needed for pybind targets
133-
"-Werror",
134133
# ov::Tensor::data method call results in deprecated warning and we use it in multiple places
135134
"-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",
136148
],
137149
"//src:windows" : [
138150
"/W4",
@@ -157,6 +169,7 @@ COMMON_STATIC_LIBS_COPTS = select({
157169
"/wd4702",
158170
"/wd4267",
159171
"/wd4996",
172+
"/guard:cf".
160173
],
161174
})
162175

0 commit comments

Comments
 (0)