ray/bazel/BUILD.redis
mehrdadn 74b2e871b7 Tentative workaround for some forks and signals on Windows (#6362)
* Platform shims for Windows

* Tentative workaround for some forks and signals on Windows

* Rewrite WorkerPool::StartProcess by moving spawnvp wrapper to a separate function

* Separate spawnvp the wrappers for POSIX and Windows

* Fix rv use
2019-12-16 16:57:49 -08:00

35 lines
772 B
Text

COPTS = [] + select({
"@bazel_tools//src/conditions:windows": [
"-Dssize_t=ptrdiff_t", # no ssize_t on Windows
"-fcolor-diagnostics",
"-fansi-escape-codes",
],
"//conditions:default": [
],
})
cc_library(
name = "hiredis",
srcs = glob(
[
"deps/hiredis/*.c",
"deps/hiredis/*.h",
],
exclude =
[
"deps/hiredis/test.c",
],
),
hdrs = glob([
"deps/hiredis/*.h",
"deps/hiredis/adapters/*.h",
"deps/hiredis/dict.c",
]),
copts = COPTS,
includes = ["deps"],
strip_include_prefix = "deps",
deps = [
"@com_github_ray_project_ray//:platform_shims",
],
visibility = ["//visibility:public"],
)