https://github.com/JuliaLang/julia
Raw File
Tip revision: 668a674ec718a768283c87ff368458328f7cd799 authored by Keno Fischer on 28 December 2022, 23:07:06 UTC
RFC: Less aggressive recursion limiting
Tip revision: 668a674
cache_stdlibs.jl
# Stdlibs sorted in dependency, then alphabetical, order by contrib/print_sorted_stdlibs.jl
# Run with the `--exclude-sysimage` option to filter out all packages included in the system image
stdlibs = [
    # No dependencies

    # 1-depth packages
    :GMP_jll,
    :LLVMLibUnwind_jll,
    :LibUV_jll,
    :LibUnwind_jll,
    :MbedTLS_jll,
    :OpenLibm_jll,
    :PCRE2_jll,
    :Zlib_jll,
    :dSFMT_jll,
    :libLLVM_jll,

    # 2-depth packages
    :LibSSH2_jll,
    :MPFR_jll,

    # 3-depth packages
    :LibGit2_jll,

    # 7-depth packages
    :LLD_jll,
    :SuiteSparse_jll,

    # 9-depth packages
    :Statistics,
    :SuiteSparse,
]

depot = abspath(Sys.BINDIR, "..", "share", "julia")

if haskey(ENV, "JULIA_CPU_TARGET")
  target = ENV["JULIA_CPU_TARGET"]
else
  target = "native"
end

@info "Caching stdlibrary to" depot target
empty!(Base.DEPOT_PATH)
push!(Base.DEPOT_PATH, depot)

for pkg in stdlibs
    pkgid = Base.identify_package(string(pkg))
    Base.compilecache(pkgid)
end
back to top