File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,18 @@ def bazel_toolchain_dependencies():
2424 strip_prefix = "rules_cc-55fc267d2f16fcb5ff39bc73bd7a920a72cd25a6" ,
2525 )
2626
27+ # Load protobuf if the user has not defined it; this is a dep needed by
28+ # `rules_cc`: https://github.com/bazelbuild/rules_cc/blob/55fc267d2f16fcb5ff39bc73bd7a920a72cd25a6/WORKSPACE#L45-L50
29+ if not native .existing_rule ("protobuf" ):
30+ http_archive (
31+ name = "protobuf" ,
32+ sha256 = "da288bf1daa6c04d03a9051781caa52aceb9163586bff9aa6cfb12f69b9395aa" ,
33+ strip_prefix = "protobuf-27.0" ,
34+ url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz" ,
35+ )
36+
37+
38+
2739 # Load bazel_skylib if the user has not defined them.
2840 if not native .existing_rule ("bazel_skylib" ):
2941 http_archive (
You can’t perform that action at this time.
0 commit comments