https://github.com/JuliaLang/julia
Raw File
Tip revision: df26fc8fd76366ab9a910b9b7edf62f0917169a1 authored by Valentin Churavy on 10 July 2024, 09:10:34 UTC
fixup! WIP: allow retrieve_code_info to be intercepted
Tip revision: df26fc8
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