Files
clang-p2996/utils/bazel/third_party_build/pyyaml.BUILD
jtstogel 442c417749 [libc][bazel] Support generating public libc headers in Bazel builds. (#145381)
Running `hdrgen` in Bazel hermetically requires adding a new dependency
on PyYAML. This PR uses PyYAML version 5.1 due to keep in line with the
docs:
b878e0d118/libc/docs/dev/header_generation.rst (L22)

See https://github.com/llvm/llvm-project/issues/134780.

Generated headers are placed in a `staging/` directory so that they have
the opportunity to be treated differently from non-generated headers.
This is a follow-up to https://github.com/llvm/llvm-project/pull/141256,
which was reverted in https://github.com/llvm/llvm-project/pull/143001
because it caused downstream failures when bootstrapping builds.
2025-06-26 11:17:57 -07:00

17 lines
443 B
Plaintext

# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("@rules_python//python:defs.bzl", "py_library")
package(
default_visibility = ["//visibility:public"],
# BSD/MIT-like license (for PyYAML)
licenses = ["notice"],
)
py_library(
name = "yaml",
srcs = glob(["yaml/*.py"]),
)