Skip to content

Commit

Permalink
disable autoprecomp if --compiled-modules=no (JuliaLang#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Jan 27, 2021
1 parent 7bf206e commit 695d019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ end
##################

function _auto_precompile(ctx::Types.Context)
if tryparse(Int, get(ENV, "JULIA_PKG_PRECOMPILE_AUTO", "1")) == 1
if Base.JLOptions().use_compiled_modules == 1 && tryparse(Int, get(ENV, "JULIA_PKG_PRECOMPILE_AUTO", "1")) == 1
Pkg.precompile(ctx; internal_call=true)
end
end
Expand Down

0 comments on commit 695d019

Please sign in to comment.