Skip to content

Commit ac9713d

Browse files
authored
Merge pull request #3147 from Mizux/bazel
Bazel fixup
2 parents ebf4110 + cd3a766 commit ac9713d

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ cc_library(
118118
],
119119
linkopts = select({
120120
"@rules_cc//cc/compiler:msvc-cl": ["-DEFAULTLIB:shell32.lib"],
121+
"@platforms//os:linux": [
122+
"-Wl,--no-as-needed -ldl",
123+
"-pthread",
124+
],
121125
"//conditions:default": ["-lpthread"],
122126
}),
123127
visibility = ["//visibility:public"],

MODULE.bazel

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,11 @@ module(
55
version = "1.15.1",
66
)
77

8-
bazel_dep(
9-
name = "bazel_skylib",
10-
version = "1.9.0",
11-
)
12-
13-
bazel_dep(
14-
name = "rules_cc",
15-
version = "0.2.17",
16-
)
17-
18-
bazel_dep(
19-
name = "zlib",
20-
version = "1.3.2",
21-
)
22-
23-
bazel_dep(
24-
name = "rules_cuda",
25-
version = "0.3.0",
26-
)
8+
bazel_dep(name = "bazel_skylib", version = "1.9.0")
9+
bazel_dep(name = "platforms", version = "1.1.0")
10+
bazel_dep(name = "rules_cc", version = "0.2.20")
11+
bazel_dep(name = "zlib", version = "1.3.2")
12+
bazel_dep(name = "rules_cuda", version = "0.3.0")
2713

2814
# Load the extension
2915
cuda = use_extension("@rules_cuda//cuda:extensions.bzl", "toolchain")

0 commit comments

Comments
 (0)