Skip to content

Commit 355c0eb

Browse files
authored
Remove MOJO_ENABLE_HAS_GPU_FOR_APPLE (#55)
This is now always enabled
1 parent dd5b6a2 commit 355c0eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mojo/mojo_host_platform.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,8 @@ def _impl(rctx):
194194
constraints.extend([
195195
apple_constraint,
196196
"@mojo_gpu_toolchains//:apple_gpu",
197+
"@mojo_gpu_toolchains//:has_gpu",
197198
])
198-
if rctx.getenv("MOJO_ENABLE_HAS_GPU_FOR_APPLE"):
199-
constraints.append("@mojo_gpu_toolchains//:has_gpu")
200199

201200
rctx.file("WORKSPACE.bazel", "workspace(name = {})".format(rctx.attr.name))
202201
rctx.file("BUILD.bazel", """
@@ -215,7 +214,6 @@ mojo_host_platform = repository_rule(
215214
implementation = _impl,
216215
configure = True,
217216
environ = [
218-
"MOJO_ENABLE_HAS_GPU_FOR_APPLE", # NOTE: Will likely be removed in the future
219217
"MOJO_IGNORE_UNKNOWN_GPUS",
220218
"MOJO_VERBOSE_GPU_DETECT",
221219
],

0 commit comments

Comments
 (0)