Skip to content

Commit 039180a

Browse files
tgymnichchristiangnrd
authored andcommitted
make macos_version check static
1 parent 470a667 commit 039180a

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
@@ -280,7 +280,7 @@ end
280280

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

0 commit comments

Comments
 (0)