Skip to content

Commit ed288b2

Browse files
committed
Rename exec_group compile -> mojo_compile
compile is too generic in case you want to set resource requests for this exec group.
1 parent ab5a349 commit ed288b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mojo/private/mojo_binary_test.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ _TOOLCHAINS = use_cpp_toolchain() + [
5959
]
6060

6161
_EXEC_GROUPS = {
62-
"compile": exec_group(toolchains = ["//:toolchain_type"]),
62+
"mojo_compile": exec_group(toolchains = ["//:toolchain_type"]),
6363
}
6464

6565
def _find_main(name, srcs, main):
@@ -89,7 +89,7 @@ def _find_main(name, srcs, main):
8989

9090
def _mojo_binary_test_implementation(ctx, *, shared_library = False):
9191
cc_toolchain = find_cpp_toolchain(ctx)
92-
mojo_toolchain = ctx.exec_groups["compile"].toolchains["//:toolchain_type"].mojo_toolchain_info
92+
mojo_toolchain = ctx.exec_groups["mojo_compile"].toolchains["//:toolchain_type"].mojo_toolchain_info
9393
py_toolchain = ctx.toolchains[_PYTHON_TOOLCHAIN_TYPE]
9494

9595
object_file = ctx.actions.declare_file(ctx.label.name + ".lo")
@@ -145,7 +145,7 @@ def _mojo_binary_test_implementation(ctx, *, shared_library = False):
145145
"TEST_TMPDIR": ".",
146146
},
147147
use_default_shell_env = True,
148-
exec_group = "compile",
148+
exec_group = "mojo_compile",
149149
toolchain = "//:toolchain_type",
150150
)
151151

0 commit comments

Comments
 (0)