Skip to content

Commit

Permalink
[bazel][SandboxIR] Add cc_test rule for SandboxIR tests. (llvm#110184)
Browse files Browse the repository at this point in the history
  • Loading branch information
slackito authored Sep 26, 2024
1 parent d8a2815 commit a82fd98
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,7 @@ cc_library(
copts = llvm_copts,
textual_hdrs = ["include/llvm/SandboxIR/SandboxIRValues.def"],
deps = [
":Analysis",
":Core",
":Support",
],
Expand Down
17 changes: 17 additions & 0 deletions utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,23 @@ cc_test(
],
)

cc_test(
name = "sandboxir_tests",
size = "small",
srcs = glob(
["SandboxIR/*.cpp"],
allow_empty = False,
),
deps = [
"//llvm:AsmParser",
"//llvm:Core",
"//llvm:SandboxIR",
"//llvm:Support",
"//third-party/unittest:gmock",
"//third-party/unittest:gtest",
],
)

cc_test(
name = "profile_data_tests",
size = "small",
Expand Down

0 comments on commit a82fd98

Please sign in to comment.