Skip to content

Commit

Permalink
fix windows precompilation on julia 1.8.2 (#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg authored Sep 30, 2022
1 parent 8a6acf8 commit ee8403c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if get(ENV, "PLOTS_PRECOMPILE", "true") == "true"
n = length(_examples)
imports = sizehint!(Expr[], n)
examples = sizehint!(Expr[], 10n)
for i in setdiff(1:n, _backend_skips[:gr])
for i in setdiff(1:n, _backend_skips[:gr], _animation_examples)
_examples[i].external && continue
(imp = _examples[i].imports) === nothing || push!(imports, imp)
func = gensym(string(i))
Expand All @@ -17,8 +17,8 @@ if get(ENV, "PLOTS_PRECOMPILE", "true") == "true"
fn = tempname()
pl = current()
gui(pl)
savefig(pl, "$fn.png")
savefig(pl, "$fn.pdf")
Sys.iswindows() || savefig(pl, "$fn.png")
Sys.iswindows() || savefig(pl, "$fn.pdf")
end
nothing
end
Expand Down

0 comments on commit ee8403c

Please sign in to comment.