Browse Source

Make .bzl files compatible with future versions of Bazel

Vladimir Moskva 8 years ago
parent
commit
4fc93044a5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      protobuf.bzl

+ 3 - 3
protobuf.bzl

@@ -245,9 +245,9 @@ def cc_proto_library(
   )
   )
 
 
   if default_runtime and not default_runtime in cc_libs:
   if default_runtime and not default_runtime in cc_libs:
-    cc_libs += [default_runtime]
+    cc_libs = cc_libs + [default_runtime]
   if use_grpc_plugin:
   if use_grpc_plugin:
-    cc_libs += ["//external:grpc_lib"]
+    cc_libs = cc_libs + ["//external:grpc_lib"]
 
 
   native.cc_library(
   native.cc_library(
       name=name,
       name=name,
@@ -371,7 +371,7 @@ def py_proto_library(
   )
   )
 
 
   if default_runtime and not default_runtime in py_libs + deps:
   if default_runtime and not default_runtime in py_libs + deps:
-    py_libs += [default_runtime]
+    py_libs = py_libs + [default_runtime]
 
 
   native.py_library(
   native.py_library(
       name=name,
       name=name,