Skip to content

Commit

Permalink
Disable GLMakie precompiles on Julia 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Oct 26, 2024
1 parent 397b41c commit 45198d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ext/GLMakiePrecompilesExt.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module GLMakiePrecompilesExt

import Sunny, GLMakie

import PrecompileTools as PT

# Julia 1.11.1 caused a change in the ordering of precompilation for extensions.
# See https://github.com/JuliaLang/julia/issues/56204#issuecomment-2439588043
@static if VERSION < v"1.11.1"

PT.@setup_workload begin
PT.@compile_workload begin
cryst = Sunny.bcc_crystal()
Expand All @@ -12,9 +16,11 @@ PT.@setup_workload begin
inspector = GLMakie.DataInspector(ax; font="Deja Vu Sans Mono")
GLMakie.Makie.show_data(inspector, plt, 1)
GLMakie.display(fig; visible=false)

GLMakie.closeall()
end
end

end # VERSION < v"1.11.1"

end

1 comment on commit 45198d9

@kbarros
Copy link
Member Author

Choose a reason for hiding this comment

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

Please sign in to comment.