[llvm] [libc][bazel] Add py_binary rule to build hdrgen. (PR #129161)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 16:30:55 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Alexey Samsonov (vonosmas)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/129161.diff
1 Files Affected:
- (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+9)
``````````diff
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index b45145acc2cfe..cc0c7c65b736b 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -5,6 +5,7 @@
# LLVM libc project.
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
+load("@rules_python//python:defs.bzl", "py_binary")
load(
":libc_build_rules.bzl",
"libc_function",
@@ -51,6 +52,14 @@ config_setting(
flag_values = {":mpfr": "system"},
)
+########################### Header Generation ##################################
+
+py_binary(
+ name = "hdrgen",
+ srcs = glob(["utils/hdrgen/hdrgen/**/*.py"]),
+ imports = ["utils/hdrgen"],
+)
+
################################## Base Config #################################
libc_support_library(
``````````
</details>
https://github.com/llvm/llvm-project/pull/129161
More information about the llvm-commits
mailing list