Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mojo/private/mojo_binary_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ _TOOLCHAINS = use_cpp_toolchain() + [
]

_EXEC_GROUPS = {
"compile": exec_group(toolchains = ["//:toolchain_type"]),
"mojo_compile": exec_group(toolchains = ["//:toolchain_type"]),
}

def _find_main(name, srcs, main):
Expand Down Expand Up @@ -89,7 +89,7 @@ def _find_main(name, srcs, main):

def _mojo_binary_test_implementation(ctx, *, shared_library = False):
cc_toolchain = find_cpp_toolchain(ctx)
mojo_toolchain = ctx.exec_groups["compile"].toolchains["//:toolchain_type"].mojo_toolchain_info
mojo_toolchain = ctx.exec_groups["mojo_compile"].toolchains["//:toolchain_type"].mojo_toolchain_info
py_toolchain = ctx.toolchains[_PYTHON_TOOLCHAIN_TYPE]

object_file = ctx.actions.declare_file(ctx.label.name + ".lo")
Expand Down Expand Up @@ -145,7 +145,7 @@ def _mojo_binary_test_implementation(ctx, *, shared_library = False):
"TEST_TMPDIR": ".",
},
use_default_shell_env = True,
exec_group = "compile",
exec_group = "mojo_compile",
toolchain = "//:toolchain_type",
)

Expand Down