Skip to content

Commit 2be45ad

Browse files
committed
Enforce strict dependency checking in bazel
https://bazel.build/docs/bazel-and-cpp#toolchain-features This avoids cases like #788 fixing #771 by enforcing stricter rules to match the behavior of the internal build system. Bug: b/377996634
1 parent 643bdcb commit 2be45ad

File tree

6 files changed

+841
-1
lines changed

6 files changed

+841
-1
lines changed

base/cvd/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build --copt=-fdiagnostics-color=always
2+
build --repo_env=CC=clang

base/cvd/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bazel_dep(name = "fmt", version = "10.2.1")
1111
bazel_dep(name = "gflags", version = "2.2.2")
1212
bazel_dep(name = "googletest", version = "1.14.0")
1313
bazel_dep(name = "jsoncpp", version = "1.9.5")
14+
bazel_dep(name = "protobuf", version = "21.7")
1415
bazel_dep(name = "tinyxml2", version = "10.0.0")
1516
bazel_dep(name = "zlib", version = "1.3.1")
1617

0 commit comments

Comments
 (0)