Skip to content

Commit bafd44b

Browse files
authored
[libc][bazel] Add py_binary rule to build hdrgen. (#129161)
1 parent 39c6c8b commit bafd44b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# LLVM libc project.
66
load("@bazel_skylib//lib:selects.bzl", "selects")
77
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
8+
load("@rules_python//python:defs.bzl", "py_binary")
89
load(
910
":libc_build_rules.bzl",
1011
"libc_function",
@@ -51,6 +52,14 @@ config_setting(
5152
flag_values = {":mpfr": "system"},
5253
)
5354

55+
########################### Header Generation ##################################
56+
57+
py_binary(
58+
name = "hdrgen",
59+
srcs = glob(["utils/hdrgen/hdrgen/**/*.py"]),
60+
imports = ["utils/hdrgen"],
61+
)
62+
5463
################################## Base Config #################################
5564

5665
libc_support_library(

0 commit comments

Comments
 (0)