summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-09-22 12:25:37 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-26 00:01:15 +0000
commita94d032586ff80a9cd25023281544bb4f3e945e9 (patch)
treefeee8a01816b6ec66827c59196dcf1b08676c893 /toxcore
parent4f266f913d9e0ba181553f5e2d69462274ba1be5 (diff)
Use new `@pthread` library from Bazel for Windows compat.
See https://github.com/TokTok/toktok-stack/pull/38.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/BUILD.bazel6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/BUILD.bazel b/toxcore/BUILD.bazel
index f041938a..b21ec4a6 100644
--- a/toxcore/BUILD.bazel
+++ b/toxcore/BUILD.bazel
@@ -86,7 +86,6 @@ cc_library(
86 "network.h", 86 "network.h",
87 "util.h", 87 "util.h",
88 ], 88 ],
89 linkopts = ["-lpthread"],
90 visibility = [ 89 visibility = [
91 "//c-toxcore/other:__pkg__", 90 "//c-toxcore/other:__pkg__",
92 "//c-toxcore/toxav:__pkg__", 91 "//c-toxcore/toxav:__pkg__",
@@ -96,6 +95,8 @@ cc_library(
96 ":crypto_core", 95 ":crypto_core",
97 ":logger", 96 ":logger",
98 ":mono_time", 97 ":mono_time",
98 "@psocket",
99 "@pthread",
99 ], 100 ],
100) 101)
101 102
@@ -188,9 +189,8 @@ cc_library(
188 "TCP_server.h", 189 "TCP_server.h",
189 ], 190 ],
190 copts = select({ 191 copts = select({
191 "//tools/config:freebsd": [],
192 "//tools/config:linux": ["-DTCP_SERVER_USE_EPOLL=1"], 192 "//tools/config:linux": ["-DTCP_SERVER_USE_EPOLL=1"],
193 "//tools/config:osx": [], 193 "//conditions:default": [],
194 }), 194 }),
195 deps = [ 195 deps = [
196 ":crypto_core", 196 ":crypto_core",