https://github.com/JuliaLang/julia
Raw File
Tip revision: 5bd2a572b82f0841643a75373b7d218c02297b49 authored by Jeff Bezanson on 17 April 2024, 01:01:56 UTC
narrow which precompile calls count as code roots
Tip revision: 5bd2a57
write_base_cache.jl
# Write the sys source cache in format readable by Base._read_dependency_src
cachefile = ARGS[1]
open(cachefile, "w") do io
    for (_, filename) in Base._included_files
        src = read(filename, String)
        write(io, Int32(sizeof(filename)))
        write(io, filename)
        write(io, UInt64(sizeof(src)))
        write(io, src)
    end
    write(io, Int32(0))
end
back to top