[llvm] Improve compiler-rt build structure and export compilation info (PR #190088)

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 14:35:20 PDT 2026


================
@@ -385,22 +522,44 @@ filegroup(
 
 # Source files for the x86-64 architecture specific builtins.
 filegroup(
-    name = "builtins_x86_64_srcs",
-    srcs = glob(
+    name = "builtins_unfiltered_x86_64_srcs",
+    srcs = [
+        ":builtins_bf16_srcs",
+        ":builtins_generic_srcs",
+        ":builtins_tf_srcs",
+        ":builtins_x86_arch_srcs",
+        ":builtins_x86_fp80_srcs",
+    ] + glob(
         [
             "lib/builtins/x86_64/*.S",
             "lib/builtins/x86_64/*.c",
             "lib/builtins/x86_64/*.cpp",
             "lib/builtins/x86_64/*.h",
         ],
         allow_empty = True,
+        exclude = [
+            # This is a Windows-specific routine.
----------------
chandlerc wrote:

It "works", but I don't think it does what we want here.

Specifically, we should expose a filegroup that is Windows-specific that covers this, and we should expose that regardless of the current target because the consumer might be a compiler that _itself_ targets Windows.

For all the filegroups here, the Bazel "target" isn't necessarily the relevant one for consumers that are compilers or build systems themselves.

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


More information about the llvm-commits mailing list