[bazel] Add build rule for llvm-remark-size-diff
authorJakub Kuderski <kubak@google.com>
Wed, 16 Mar 2022 18:05:38 +0000 (14:05 -0400)
committerJakub Kuderski <kubak@google.com>
Wed, 16 Mar 2022 18:07:07 +0000 (14:07 -0400)
This binary is used in LIT tests.

Test: `bazel run --config=generic_clang -c opt @llvm-project//llvm:llvm-remark-size-diff -- --help`

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D121742

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

index 6752194..031c4ca 100644 (file)
@@ -3609,6 +3609,24 @@ cc_binary(
 )
 
 cc_binary(
+    name = "llvm-remark-size-diff",
+    srcs = glob([
+        "tools/llvm-remark-size-diff/**/*.cpp",
+        "tools/llvm-remark-size-diff/**/*.h",
+    ]),
+    copts = llvm_copts,
+    includes = ["tools/llvm-reark-size-diff"],
+    stamp = 0,
+    deps = [
+        ":Core",
+        ":Demangle",
+        ":Object",
+        ":Remarks",
+        ":Support",
+    ],
+)
+
+cc_binary(
     name = "llvm-rtdyld",
     srcs = glob([
         "tools/llvm-rtdyld/*.cpp",