Skip to content

Commit 3a33abd

Browse files
committed
link hiredis with Crypt32.lib on windows
Signed-off-by: mattip <matti.picus@gmail.com>
1 parent b41b3d7 commit 3a33abd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bazel/BUILD.hiredis

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ COPTS = ["-DUSE_SSL=1"] + select({
1616
],
1717
})
1818

19+
LOPTS = select({
20+
"@bazel_tools//src/conditions:windows": [
21+
"Crypt32.lib",
22+
],
23+
"//conditions:default": [
24+
],
25+
})
26+
1927
# This library is for internal hiredis use, because hiredis assumes a
2028
# different include prefix for itself than external libraries do.
2129
cc_library(
@@ -43,6 +51,7 @@ cc_library(
4351
"adapters/*.h",
4452
]),
4553
copts = COPTS,
54+
additional_linker_inputs = LOPTS,
4655
include_prefix = "hiredis",
4756
deps = [
4857
":_hiredis",

0 commit comments

Comments
 (0)