From 1842ea6cf9c1a0d5e72e21d8f0083d60a77cc211 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Wed, 12 Nov 2025 16:03:14 +0000 Subject: [PATCH 1/2] [bazel] Fix LLDB :Host Build On some systems (probably those with a more recent clang), building :Host errors out with a layering check violation due to the histedit.h system include. Opt it out of layering checks for now, similar to other targets that depend on non standard library system includes. --- utils/bazel/llvm-project-overlay/lldb/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel index 7e5cc2e10f612..4de2716da90e3 100644 --- a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel @@ -591,6 +591,7 @@ cc_library( ], "//conditions:default": [], }), + features = ["-layering_check"], # histedit.h breaks this. ) cc_headers_only( From bf1f1a5fce5cbe0976fff7094b06991415606df0 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Wed, 12 Nov 2025 19:22:20 +0000 Subject: [PATCH 2/2] fix buildifier --- utils/bazel/llvm-project-overlay/lldb/BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel index 4de2716da90e3..8ebb6ab5daa3c 100644 --- a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel @@ -550,6 +550,7 @@ cc_library( "include/lldb/Host/posix/*.h", ]), }), + features = ["-layering_check"], # histedit.h breaks this. includes = ["include"], # TODO: Move this to Config library when https://github.com/bazelbuild/bazel/issues/21884 is fixed linkopts = select({ @@ -591,7 +592,6 @@ cc_library( ], "//conditions:default": [], }), - features = ["-layering_check"], # histedit.h breaks this. ) cc_headers_only(