Skip to content

Commit

Permalink
Avoid crash on 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarros committed Dec 4, 2024
1 parent e72cbda commit b1b2512
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/GLMakiePrecompilesExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module GLMakiePrecompilesExt
import Sunny, GLMakie
import PrecompileTools as PT

# 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
cryst = Sunny.bcc_crystal()
Expand All @@ -18,3 +22,5 @@ PT.@setup_workload begin
end

end

end

0 comments on commit b1b2512

Please sign in to comment.