[llvm] [SandboxIR] Add bazel support (PR #107486)

Jorge Gorbe Moya via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 16:16:11 PDT 2024


================
@@ -1446,6 +1446,20 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "SandboxIR",
+    srcs = glob([
+        "lib/SandboxIR/*.cpp",
+    ]),
+    hdrs = glob(["include/llvm/SandboxIR/*.h"]) +
+    ["include/llvm/SandboxIR/SandboxIRValues.def"],
----------------
slackito wrote:

The .def file is just a bunch of X macros so it should probably go in `textual_hdrs`

https://bazel.build/reference/be/c-cpp#cc_library.textual_hdrs:
> This is the location for declaring header files that cannot be compiled on their own; that is, they always need to be textually included by other source files to build valid code.

https://github.com/llvm/llvm-project/pull/107486


More information about the llvm-commits mailing list