Skip to content

Commit 9466eb5

Browse files
committed
[bazel] Replace features with explicit flags in coremark lib
Matches the arguments used in `//third_party/coremark/top_earlgrey`. Allows the feature-per-warning method from CRT to be replaced with one set of warnings which is easier to manage. Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
1 parent 12c7abd commit 9466eb5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

third_party/coremark/BUILD.coremark.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ cc_library(
1616
hdrs = [
1717
"coremark.h",
1818
],
19-
features = [
20-
"-implicit_conversion_warnings",
21-
"-strict_prototypes_warnings",
19+
copts = [
20+
"-Wno-implicit-fallthrough",
21+
"-Wno-strict-prototypes",
22+
"-Wno-implicit-int-conversion",
23+
"-Wno-sign-conversion",
24+
"-Wno-shorten-64-to-32",
2225
],
2326
includes = ["."],
2427
deps = [

0 commit comments

Comments
 (0)