Skip to content

Commit ba273be

Browse files
authored
[Bazel] Remove redundant gtest_main from codegen_tests, codegen_globalisel_tests, mi_tests (llvm#135316)
For codegen_tests, codegen_globalisel_tests and mi_tests, they already have their own `main` function defined, so there should be no need to add `gtest_main` dependency for the main function... - codegen_tests: https://github.com/llvm/llvm-project/blob/main/llvm/unittests/CodeGen/TargetOptionsTest.cpp#L73 - codegen_globalisel_tests: https://github.com/llvm/llvm-project/blob/main/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp#L978 - mi_tests: https://github.com/llvm/llvm-project/blob/main/llvm/unittests/MI/LiveIntervalTest.cpp#L933
1 parent 722d589 commit ba273be

File tree

1 file changed

+0
-3
lines changed
  • utils/bazel/llvm-project-overlay/llvm/unittests

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ cc_test(
174174
"//llvm:Target",
175175
"//llvm:TestingSupport",
176176
"//third-party/unittest:gtest",
177-
"//third-party/unittest:gtest_main",
178177
],
179178
)
180179

@@ -203,7 +202,6 @@ cc_test(
203202
"//llvm:Support",
204203
"//llvm:Target",
205204
"//third-party/unittest:gtest",
206-
"//third-party/unittest:gtest_main",
207205
],
208206
)
209207

@@ -501,7 +499,6 @@ cc_test(
501499
"//llvm:Support",
502500
"//llvm:Target",
503501
"//third-party/unittest:gtest",
504-
"//third-party/unittest:gtest_main",
505502
],
506503
)
507504

0 commit comments

Comments
 (0)