Skip to content

Commit b639607

Browse files
committed
[libc][bazel] Support generating public libc headers in Bazel builds.
This requires adding a new dependency on PyYAML so that Bazel is able to run the `hdrgen` tool hermetically. See #134780.
1 parent 45d8759 commit b639607

File tree

4 files changed

+539
-0
lines changed

4 files changed

+539
-0
lines changed

utils/bazel/WORKSPACE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,15 @@ maybe(
182182
url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.4.0.tar.gz",
183183
)
184184

185+
maybe(
186+
http_archive,
187+
name = "pyyaml",
188+
build_file = "@llvm-raw//utils/bazel/third_party_build:pyyaml.BUILD",
189+
sha256 = "f0a35d7f282a6d6b1a4f3f3965ef5c124e30ed27a0088efb97c0977268fd671f",
190+
strip_prefix = "pyyaml-5.1/lib3",
191+
url = "https://github.com/yaml/pyyaml/archive/refs/tags/5.1.zip",
192+
)
193+
185194
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
186195

187196
py_repositories()

0 commit comments

Comments
 (0)