mirror of
https://github.com/gflags/gflags.git
synced 2025-04-05 05:25:04 +00:00
fix
This commit is contained in:
parent
e66b79d05c
commit
ecc757a62d
2 changed files with 8 additions and 7 deletions
7
BUILD
7
BUILD
|
@ -11,6 +11,13 @@ config_setting(
|
|||
values = {"cpu": "x64_windows"},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "gflags_debug_build",
|
||||
values = {
|
||||
"compilation_mode": "dbg",
|
||||
},
|
||||
)
|
||||
|
||||
load(":bazel/gflags.bzl", "gflags_sources", "gflags_library")
|
||||
|
||||
(hdrs, srcs) = gflags_sources(namespace=["gflags", "google"])
|
||||
|
|
|
@ -92,12 +92,6 @@ def gflags_library(hdrs=[], srcs=[], threads=1):
|
|||
else:
|
||||
name += "_nothreads"
|
||||
copts += ["-DNO_THREADS"]
|
||||
native.config_setting(
|
||||
name = "gflags_debug_build",
|
||||
values = {
|
||||
"compilation_mode": "dbg",
|
||||
},
|
||||
)
|
||||
native.cc_library(
|
||||
name = name,
|
||||
hdrs = hdrs,
|
||||
|
@ -105,7 +99,7 @@ def gflags_library(hdrs=[], srcs=[], threads=1):
|
|||
copts = copts,
|
||||
linkopts = linkopts,
|
||||
defines = select({
|
||||
":gflags_debug_build": ["GFLAGS_DEBUG_BUILD"],
|
||||
"//:gflags_debug_build": ["GFLAGS_DEBUG_BUILD"],
|
||||
"//conditions:default": []
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
|
|
Loading…
Add table
Reference in a new issue