summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Earhart <rob@vertex.ai>2018-01-06 21:32:32 -0800
committerAndreas Schuh <andreas.schuh.84@gmail.com>2018-01-07 10:40:06 +0000
commite292e0452fcfd5a8ae055b59052fc041cbab4abf (patch)
treeb169bdd128b8e2e819d699dd5306c99c7338ab8b
parent6d1c363dde8a4277f7f363446a82b2188fd94608 (diff)
downloadgflags-master.tar.gz
gflags-master.tar.bz2
gflags-master.zip
Use += for appendsHEADmaster
-rw-r--r--bazel/gflags.bzl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bazel/gflags.bzl b/bazel/gflags.bzl
index 6d1ef6c..533fd61 100644
--- a/bazel/gflags.bzl
+++ b/bazel/gflags.bzl
@@ -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,