Skip to content

Commit 578c75e

Browse files
authored
Revert "[libc][bazel] Support generating public libc headers in Bazel builds. (llvm#141256)" (llvm#143001)
This reverts commit 27143f2. It causes some downstream failures when bootstrapping builds.
1 parent 8641a2c commit 578c75e

File tree

4 files changed

+0
-57
lines changed

4 files changed

+0
-57
lines changed

utils/bazel/WORKSPACE

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,6 @@ 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-
194185
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
195186

196187
py_repositories()

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ load("@rules_python//python:defs.bzl", "py_binary")
99
load(
1010
":libc_build_rules.bzl",
1111
"libc_function",
12-
"libc_generated_header",
1312
"libc_header_library",
1413
"libc_math_function",
1514
"libc_support_library",
@@ -89,14 +88,6 @@ py_binary(
8988
srcs = glob(["utils/hdrgen/hdrgen/**/*.py"]),
9089
imports = ["utils/hdrgen"],
9190
main = "utils/hdrgen/hdrgen/main.py",
92-
deps = ["@pyyaml//:yaml"],
93-
)
94-
95-
libc_generated_header(
96-
name = "include_stdbit_h",
97-
hdr = "include/stdbit.h",
98-
other_srcs = ["include/stdbit.h.def"],
99-
yaml_template = "include/stdbit.yaml",
10091
)
10192

10293
# Library containing all headers that can be transitively included by generated llvm-libc

utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -248,29 +248,6 @@ def libc_header_library(name, hdrs, deps = [], **kwargs):
248248
**kwargs
249249
)
250250

251-
def libc_generated_header(name, hdr, yaml_template, other_srcs = []):
252-
"""Generates a libc header file from YAML template.
253-
254-
Args:
255-
name: Name of the genrule target.
256-
hdr: Path of the header file to generate.
257-
yaml_template: Path of the YAML template file.
258-
other_srcs: Other files required to generate the header, if any.
259-
"""
260-
hdrgen = "//libc:hdrgen"
261-
cmd = "$(location {hdrgen}) $(location {yaml}) -o $@".format(
262-
hdrgen = hdrgen,
263-
yaml = yaml_template,
264-
)
265-
266-
native.genrule(
267-
name = name,
268-
outs = [hdr],
269-
srcs = [yaml_template] + other_srcs,
270-
cmd = cmd,
271-
tools = [hdrgen],
272-
)
273-
274251
def libc_math_function(
275252
name,
276253
additional_deps = None):

utils/bazel/third_party_build/pyyaml.BUILD

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)