Skip to content

Commit

Permalink
Fix syscall warning in Bazel Build
Browse files Browse the repository at this point in the history
This commit resolves [#717](#717) issue.
  • Loading branch information
ArthurBandaryk authored and drigz committed Oct 7, 2021
1 parent 5652319 commit c34dbe9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions bazel/glog.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ expand_template = rule(
)

def dict_union(x, y):
z = {}
z.update(x)
z.update(y)
return z
z = {}
z.update(x)
z.update(y)
return z

def glog_library(namespace = "google", with_gflags = 1, **kwargs):
if native.repository_name() != "@":
Expand Down Expand Up @@ -92,6 +92,8 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
darwin_only_copts = [
# For stacktrace.
"-DHAVE_DLADDR",
# Avoid deprecated syscall().
"-DHAVE_PTHREAD_THREADID_NP",
]

windows_only_copts = [
Expand Down Expand Up @@ -139,13 +141,13 @@ def glog_library(namespace = "google", with_gflags = 1, **kwargs):
"//conditions:default": [],
}),
hdrs = [
"src/glog/log_severity.h",
"src/glog/platform.h",
":logging_h",
":raw_logging_h",
":stl_logging_h",
":vlog_is_on_h",
],
"src/glog/log_severity.h",
"src/glog/platform.h",
":logging_h",
":raw_logging_h",
":stl_logging_h",
":vlog_is_on_h",
],
strip_include_prefix = "src",
defines = select({
# GOOGLE_GLOG_DLL_DECL is normally set by export.h, but that's not
Expand Down

0 comments on commit c34dbe9

Please sign in to comment.