Skip to content

Commit

Permalink
fix for Pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Mar 6, 2024
1 parent b621e03 commit 10466c3
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions base/precompilation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,24 @@ end
const Config = Pair{Cmd, Base.CacheFlags}
const PkgConfig = Tuple{Base.PkgId,Config}

function precompilepkgs(pkgs::Vector{String}=String[]; internal_call::Bool=false,
strict::Bool=false, warn_loaded = true, timing::Bool = false,
_from_loading::Bool=false, configs::Union{Config,Vector{Config}}=(``=>Base.CacheFlags()),
io::IO=stderr)
time_start = time_ns()
function precompilepkgs(pkgs::Vector{String}=String[];
internal_call::Bool=false,
strict::Bool = false,
warn_loaded::Bool = true,
timing::Bool = false,
_from_loading::Bool=false,
configs::Union{Config,Vector{Config}}=(``=>Base.CacheFlags()),
io::IO=stderr,
flags_cacheflags=nothing)

if flags_cacheflags !== nothing
# TODO: Remove `flags_cacheflags` once Pkg moves to the renamed kwarg `configs`
configs = flags_cacheflags
end
configs = configs isa Config ? [configs] : configs

time_start = time_ns()

env = ExplicitEnv()

# Windows sometimes hits a ReadOnlyMemoryError, so we halve the default number of tasks. Issue #2323
Expand Down

0 comments on commit 10466c3

Please sign in to comment.