Skip to content

Commit 58b7d73

Browse files
IanButterworthKristofferC
authored andcommitted
disable autoprecomp if --compiled-modules=no (#2360)
(cherry picked from commit 695d019)
1 parent 5a5ee40 commit 58b7d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pkg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ end
586586
##################
587587

588588
function _auto_precompile(ctx::Types.Context)
589-
if tryparse(Int, get(ENV, "JULIA_PKG_PRECOMPILE_AUTO", "1")) == 1
589+
if Base.JLOptions().use_compiled_modules == 1 && tryparse(Int, get(ENV, "JULIA_PKG_PRECOMPILE_AUTO", "1")) == 1
590590
Pkg.precompile(ctx; internal_call=true)
591591
end
592592
end

0 commit comments

Comments
 (0)