Skip to content

Commit a82fd98

Browse files
authored
[bazel][SandboxIR] Add cc_test rule for SandboxIR tests. (#110184)
1 parent d8a2815 commit a82fd98

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
@@ -1457,6 +1457,7 @@ cc_library(
14571457
copts = llvm_copts,
14581458
textual_hdrs = ["include/llvm/SandboxIR/SandboxIRValues.def"],
14591459
deps = [
1460+
":Analysis",
14601461
":Core",
14611462
":Support",
14621463
],

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,23 @@ cc_test(
632632
],
633633
)
634634

635+
cc_test(
636+
name = "sandboxir_tests",
637+
size = "small",
638+
srcs = glob(
639+
["SandboxIR/*.cpp"],
640+
allow_empty = False,
641+
),
642+
deps = [
643+
"//llvm:AsmParser",
644+
"//llvm:Core",
645+
"//llvm:SandboxIR",
646+
"//llvm:Support",
647+
"//third-party/unittest:gmock",
648+
"//third-party/unittest:gtest",
649+
],
650+
)
651+
635652
cc_test(
636653
name = "profile_data_tests",
637654
size = "small",

0 commit comments

Comments
 (0)