Skip to content

Commit 7ff1e4b

Browse files
committed
Move error checking flags to linux only
... as ag/37938010 shows pre-existing issues with the emulator on mac and windows builds. Originally added in #98.
1 parent 4268d5b commit 7ff1e4b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

build_variables.bzl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@ Common build configuration definitions.
33
"""
44
GFXSTREAM_COMMON_COPTS = [
55
"-Wall",
6-
"-Werror",
76
"-Wextra",
87
"-Wformat",
8+
"-Wshadow",
9+
"-Wunused-result",
910
"-Wno-missing-field-initializers",
1011
"-Wno-return-type-c-linkage",
1112
"-Wno-unused-function",
1213
"-Wno-unused-parameter",
1314
"-Wno-unused-private-field",
1415
"-Wno-unused-variable",
15-
"-Wshadow",
16-
"-Wunused-result",
16+
"-Wno-thread-safety-analysis",
17+
"-Wno-thread-safety-attributes",
1718
] + select({
18-
"//conditions:default": [
19-
"-Wno-thread-safety-analysis",
20-
"-Wno-thread-safety-attributes",
19+
"@platforms//os:linux": [
20+
"-Werror",
2121
],
22+
"//conditions:default": [],
2223
})
2324
GFXSTREAM_HOST_COPTS = GFXSTREAM_COMMON_COPTS + [
2425
] + select({

0 commit comments

Comments
 (0)