-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBUILD.bazel
64 lines (56 loc) · 1.02 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package(default_visibility = ["//visibility:public"])
config_setting(
name = "macos_arm64",
values = {"cpu": "darwin_arm64"},
)
config_setting(
name = "macos_default",
values = {"cpu": "darwin"},
)
config_setting(
name = "macos_x86_64",
values = {"cpu": "darwin_x86_64"},
)
cc_library(
name = "co",
srcs = [
"coroutine.cc",
],
hdrs = [
"bitset.h",
"coroutine.h",
],
copts = [
"-Wall",
],
deps = select({
"//:macos_x86_64": [],
"//:macos_arm64": [],
"//:macos_default": [],
"//conditions:default": ["@com_google_absl//absl/container:flat_hash_map"],
}),
)
cc_binary(
name = "cotest",
srcs = ["cotest.cc"],
deps = [
":co",
],
)
cc_binary(
name = "costress",
srcs = ["costress.cc"],
deps = [
":co",
],
)
cc_test(
name = "test_coroutines",
srcs = [
"test_coroutines.cc",
],
deps = [
":co",
"@com_google_googletest//:gtest_main",
],
)