Revision d8c225007498a68d1a1c9f3229d0dbc11b98f0cf authored by Gabriel Baraldi on 11 February 2023, 11:07:34 UTC, committed by GitHub on 11 February 2023, 11:07:34 UTC
* Run dsymutil on pkgimgs for apple platforms +
LLD bump to get dsymutil from the jll
1 parent 6cbcee9
Raw File
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