Skip to content

Commit 0dfd109

Browse files
authored
use bcr aio (#453)
1 parent 3fe2960 commit 0dfd109

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/bazel.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: deps
17-
# Install Bazel See: https://bazel.build/install/ubuntu
18-
run: |
19-
sudo apt install -y libaio-dev
2016
- name: Build
2117
# Build your program with clang
2218
working-directory: ${{github.workspace}}

BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ cc_library(
3434
"//bazel/config:async_simple_has_not_aio": ["ASYNC_SIMPLE_HAS_NOT_AIO"],
3535
"//conditions:default": [],
3636
}),
37-
linkopts = select({
37+
visibility = ["//visibility:public"],
38+
deps = select({
3839
"//bazel/config:async_simple_has_not_aio": [],
39-
"//conditions:default": ["-laio"],
40+
"//conditions:default": ["@libaio//:aio"],
4041
}),
41-
visibility = ["//visibility:public"],
4242
)
4343

4444
cc_library(

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module(name = "com_github_async_simple")
22

3-
bazel_dep(name = "platforms", version = "1.0.0")
43
bazel_dep(name = "bazel_skylib", version = "1.8.2")
4+
bazel_dep(name = "libaio", version = "0.3.113.bcr.0")
5+
bazel_dep(name = "platforms", version = "1.0.0")
6+
bazel_dep(name = "rules_cc", version = "0.2.16")
57

68
bazel_dep(name = "googletest", version = "1.17.0.bcr.2", dev_dependency = True, repo_name = "com_google_googletest")
79
bazel_dep(name = "google_benchmark", version = "1.9.5", dev_dependency = True, repo_name = "com_google_benchmark")
810
bazel_dep(name = "boringssl", version = "0.20250311.0", dev_dependency = True)
911

10-
bazel_dep(name = "rules_cc", version = "0.2.16")
11-
1212
# Hedron's Compile Commands Extractor for Bazel
1313
# https://github.com/hedronvision/bazel-compile-commands-extractor
1414
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)

0 commit comments

Comments
 (0)