Skip to content

Commit e0817c6

Browse files
authored
[bazel] Redo LSP changes to fix bazel build (#158150)
Reverts #157691 Change was relanded in #157885
1 parent 43561ad commit e0817c6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ cc_library(
228228
"lib/Support/*.cpp",
229229
"lib/Support/*.h",
230230
"lib/Support/*.inc",
231+
"lib/Support/LSP/*.cpp",
231232
# To avoid a dependency cycle.
232233
"include/llvm/Option/*.h",
233234
]) + select({

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,23 @@ cc_test(
793793
],
794794
)
795795

796+
cc_test(
797+
name = "SupportLSPTests",
798+
size = "small",
799+
srcs = glob(["Support/LSP/*.cpp"]),
800+
copts = [
801+
"$(STACK_FRAME_UNLIMITED)",
802+
],
803+
linkstatic = 1,
804+
deps = [
805+
"//llvm:Support",
806+
"//llvm:config",
807+
"//third-party/unittest:gmock",
808+
"//third-party/unittest:gtest",
809+
"//third-party/unittest:gtest_main",
810+
],
811+
)
812+
796813
cc_test(
797814
name = "tablegen_tests",
798815
size = "small",

0 commit comments

Comments
 (0)