Skip to content

Commit

Permalink
Move interactive check in code load Pkg.precompile (JuliaLang#49304)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored and Xnartharax committed Apr 13, 2023
1 parent 82e34c2 commit 2ed6e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ function _require(pkg::PkgId, env=nothing)

if JLOptions().use_compiled_modules != 0
if (0 == ccall(:jl_generating_output, Cint, ())) || (JLOptions().incremental != 0)
if !pkg_precompile_attempted && isassigned(PKG_PRECOMPILE_HOOK)
if !pkg_precompile_attempted && isinteractive() && isassigned(PKG_PRECOMPILE_HOOK)
pkg_precompile_attempted = true
unlock(require_lock)
try
Expand Down

0 comments on commit 2ed6e55

Please sign in to comment.