Skip to content

Commit

Permalink
Run precompile without --compile=min and --optimize=0
Browse files Browse the repository at this point in the history
Some package does work in e.g. __init__ and that can become
really slow if running in interpreted mode.
  • Loading branch information
fredrikekre committed Oct 22, 2020
1 parent 6fc25ad commit e1569f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ if get(ENV, "JULIA_PKG_PRECOMPILE_AUTO", nothing) !== "1"
end

# Swap out --compile=min and --optimize=0 if we are running tests
# since we don't want that to propagate to the test-subprocess,
# and packages expect, and should be, tested with default options.
if "test" in PKG_REPL_ARGS
# or precompiling since we don't want that to propagate to those subprocesses,
# and packages expect, and should be, tested/precompiled with default options.
if "test" in PKG_REPL_ARGS || "precompile" in PKG_REPL_ARGS
o = Base.JLOptions()
o′ = Base.JLOptions((x === :compile_enabled ? Int8(1) :
x === :opt_level ? Int8(2) :
Expand Down

0 comments on commit e1569f3

Please sign in to comment.