From e292e0452fcfd5a8ae055b59052fc041cbab4abf Mon Sep 17 00:00:00 2001 From: Rob Earhart Date: Sat, 6 Jan 2018 21:32:32 -0800 Subject: [PATCH] Use += for appends --- bazel/gflags.bzl | 4 ++-- 1 file 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,