[llvm] [bazel] Add targets for some testing utility binaries/libraries. (PR #122834)

Jorge Gorbe Moya via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 16:50:51 PST 2025


https://github.com/slackito created https://github.com/llvm/llvm-project/pull/122834

None

>From 1fc12b64b2e759a784a06a829810c87b5ef6e72b Mon Sep 17 00:00:00 2001
From: Jorge Gorbe Moya <jgorbe at google.com>
Date: Mon, 13 Jan 2025 16:30:29 -0800
Subject: [PATCH] [bazel] Add targets for some testing utility
 binaries/libraries.

---
 .../llvm-project-overlay/clang/BUILD.bazel    | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 128c348696a8f6..ae9dc34a6f92ba 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -2353,6 +2353,17 @@ cc_library(
     ],
 )
 
+cc_binary(
+    name = "apinotes-test",
+    testonly = 1,
+    srcs = ["tools/apinotes-test/APINotesTest.cpp"],
+    stamp = 0,
+    deps = [
+        ":apinotes",
+        "//llvm:Support",
+    ],
+)
+
 cc_binary(
     name = "arcmt-test",
     testonly = 1,
@@ -2512,6 +2523,14 @@ cc_binary(
     ],
 )
 
+genrule(
+    name = "gen_clang_cl",
+    srcs = [":clang"],
+    outs = ["clang-cl"],
+    cmd = "cp $< $@",
+    output_to_bindir = 1,
+)
+
 cc_binary(
     name = "clang-format",
     srcs = [
@@ -2725,3 +2744,40 @@ cc_library(
         "//llvm:TargetParser",
     ],
 )
+
+cc_binary(
+    name = "clang-fuzzer-dictionary",
+    srcs = ["tools/clang-fuzzer/dictionary/dictionary.c"],
+    deps = [":basic"],
+)
+
+genrule(
+    name = "fuzzer-dictionary",
+    outs = ["fuzzer-dictionary.txt"],
+    cmd = "$(location :clang-fuzzer-dictionary) > $@",
+    tools = [":clang-fuzzer-dictionary"],
+)
+
+cc_library(
+    name = "handle-cxx",
+    srcs = ["tools/clang-fuzzer/handle-cxx/handle_cxx.cpp"],
+    hdrs = ["tools/clang-fuzzer/handle-cxx/handle_cxx.h"],
+    deps = [
+        ":codegen",
+        ":frontend",
+        ":lex",
+        ":tooling",
+        "//llvm:Option",
+        "//llvm:Support",
+    ],
+)
+
+cc_library(
+    name = "clang-fuzzer-initialize",
+    srcs = ["tools/clang-fuzzer/fuzzer-initialize/fuzzer_initialize.cpp"],
+    hdrs = ["tools/clang-fuzzer/fuzzer-initialize/fuzzer_initialize.h"],
+    deps = [
+        "//llvm:Core",
+        "//llvm:Support",
+    ],
+)



More information about the llvm-commits mailing list