Make .bzl files compatible with future versions of Bazel
diff --git a/protobuf.bzl b/protobuf.bzl
index 9cb17f0..23380ba 100644
--- a/protobuf.bzl
+++ b/protobuf.bzl
@@ -245,9 +245,9 @@
)
if default_runtime and not default_runtime in cc_libs:
- cc_libs += [default_runtime]
+ cc_libs = cc_libs + [default_runtime]
if use_grpc_plugin:
- cc_libs += ["//external:grpc_lib"]
+ cc_libs = cc_libs + ["//external:grpc_lib"]
native.cc_library(
name=name,
@@ -371,7 +371,7 @@
)
if default_runtime and not default_runtime in py_libs + deps:
- py_libs += [default_runtime]
+ py_libs = py_libs + [default_runtime]
native.py_library(
name=name,