Skip to content

Commit

Permalink
Support GLMakie precompiles on Julia 1.11.2 (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros authored Dec 4, 2024
1 parent 46b8b7d commit 29d570f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192"

[extensions]
ExportVTKExt = "WriteVTK"
GLMakiePrecompilesExt = "GLMakie"
GLMakiePrecompilesExt = ["Makie", "GLMakie"]
PlottingExt = "Makie"
WGLMakiePrecompilesExt = "WGLMakie"
WGLMakiePrecompilesExt = ["Makie", "WGLMakie"]

[compat]
Brillouin = "0.5.19"
Expand Down
10 changes: 5 additions & 5 deletions ext/GLMakiePrecompilesExt.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module GLMakiePrecompilesExt

import Sunny, GLMakie
import Sunny, Makie, 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"
# Julia 1.11.1 broke extension precompiles, but this was fixed in 1.11.2.
# https://github.com/JuliaLang/julia/issues/56204#issuecomment-2439588043
@static if VERSION != v"1.11.1"

PT.@setup_workload begin
PT.@compile_workload begin
Expand All @@ -21,6 +21,6 @@ PT.@setup_workload begin
end
end

end # VERSION < v"1.11.1"
end

end

0 comments on commit 29d570f

Please sign in to comment.