Use += for appends master
authorRob Earhart <rob@vertex.ai>
Sun, 7 Jan 2018 05:32:32 +0000 (21:32 -0800)
committerAndreas Schuh <andreas.schuh.84@gmail.com>
Sun, 7 Jan 2018 10:40:06 +0000 (10:40 +0000)
bazel/gflags.bzl

index 6d1ef6c..533fd61 100644 (file)
@@ -85,13 +85,13 @@ def gflags_library(hdrs=[], srcs=[], threads=1):
     })
     linkopts = []
     if threads:
-        linkopts = linkopts + select({
+        linkopts += select({
             "//:x64_windows": [],
             "//conditions:default": ["-lpthread"],
         })
     else:
         name += "_nothreads"
-        copts = copts + ["-DNO_THREADS"]
+        copts += ["-DNO_THREADS"]
     native.cc_library(
         name       = name,
         hdrs       = hdrs,