Skip to content

Commit

Permalink
Make initialization failure non-fatal to appease Registrator.jl.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Mar 3, 2023
1 parent e6f92c9 commit fdab277
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ function __init__()
precompiling = ccall(:jl_generating_output, Cint, ()) != 0
precompiling && return

Sys.isapple() || error("Metal.jl is only supported on macOS")
if !Sys.isapple()
@error("Metal.jl is only supported on macOS")
return
end

# ensure that operations executed by the REPL back-end finish before returning,
# because displaying values happens on a different task
Expand Down

2 comments on commit fdab277

@maleadt
Copy link
Member Author

@maleadt maleadt commented on fdab277 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/78879

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" fdab27774c5f4b96ad7fc8bafee698394dde8e70
git push origin v0.2.0

Please sign in to comment.