Skip to content

Commit 28dbbba

Browse files
[bazel] Fix LLDB :Host Build (llvm#167711)
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.
1 parent 0a34d37 commit 28dbbba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ cc_library(
550550
"include/lldb/Host/posix/*.h",
551551
]),
552552
}),
553+
features = ["-layering_check"], # histedit.h breaks this.
553554
includes = ["include"],
554555
# TODO: Move this to Config library when https://github.com/bazelbuild/bazel/issues/21884 is fixed
555556
linkopts = select({

0 commit comments

Comments
 (0)