Commit e292e045 authored by Rob Earhart's avatar Rob Earhart Committed by Andreas Schuh

Use += for appends

parent 6d1c363d
...@@ -85,13 +85,13 @@ def gflags_library(hdrs=[], srcs=[], threads=1): ...@@ -85,13 +85,13 @@ def gflags_library(hdrs=[], srcs=[], threads=1):
}) })
linkopts = [] linkopts = []
if threads: if threads:
linkopts = linkopts + select({ linkopts += select({
"//:x64_windows": [], "//:x64_windows": [],
"//conditions:default": ["-lpthread"], "//conditions:default": ["-lpthread"],
}) })
else: else:
name += "_nothreads" name += "_nothreads"
copts = copts + ["-DNO_THREADS"] copts += ["-DNO_THREADS"]
native.cc_library( native.cc_library(
name = name, name = name,
hdrs = hdrs, hdrs = hdrs,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment