Skip to content

Commit d43e851

Browse files
tgymnichchristiangnrd
authored andcommitted
make macos_version check static
1 parent d18dfd0 commit d43e851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/execution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ end
278278

279279
cmdbuf = if kernel.loggingEnabled
280280
# TODO: make this a dynamic error, i.e., from the kernel (JuliaGPU/Metal.jl#433)
281-
if macos_version() < v"15"
281+
@static if macos_version() < v"15"
282282
error("Logging is only supported on macOS 15 or higher")
283283
end
284284

0 commit comments

Comments
 (0)