Skip to content

Commit

Permalink
precompile: update kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Mar 10, 2024
1 parent 28bbbd4 commit 4690756
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Logging
import FileWatching

import Base: StaleCacheKey
import Base.Precompilation: Config

import ..depots, ..depots1, ..logdir, ..devdir, ..printpkgstyle, ..UnstableIO
import ..Operations, ..GitTools, ..Pkg, ..Registry
Expand Down Expand Up @@ -1131,7 +1132,8 @@ end

function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool=false,
strict::Bool=false, warn_loaded = true, already_instantiated = false, timing::Bool = false,
_from_loading::Bool=false, flags_cacheflags::Pair{Cmd, Base.CacheFlags}=(``=>Base.CacheFlags()), kwargs...)
_from_loading::Bool=false, configs::Union{Base.Precompilation.Config,Vector{Base.Precompilation.Config}}=(``=>Base.CacheFlags()),
kwargs...)
Context!(ctx; kwargs...)
if !already_instantiated
instantiate(ctx; allow_autoprecomp=false, kwargs...)
Expand All @@ -1154,7 +1156,7 @@ function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool

activate(dirname(ctx.env.project_file)) do
pkgs_name = String[pkg.name for pkg in pkgs]
return Base.Precompilation.precompilepkgs(pkgs_name; internal_call, strict, warn_loaded, timing, _from_loading, flags_cacheflags, io)
return Base.Precompilation.precompilepkgs(pkgs_name; internal_call, strict, warn_loaded, timing, _from_loading, configs, io)
end
end

Expand Down

0 comments on commit 4690756

Please sign in to comment.