From 695d019504be4d0e918d2143aa701f9778c47ee0 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Wed, 27 Jan 2021 03:31:05 -0500 Subject: [PATCH] disable autoprecomp if --compiled-modules=no (#2360) --- src/Pkg.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pkg.jl b/src/Pkg.jl index 1995aababc..5055aec39b 100644 --- a/src/Pkg.jl +++ b/src/Pkg.jl @@ -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