https://github.com/JuliaLang/julia
Raw File
Tip revision: a58bdd90101796eb0ec761a7a8e5103bd96c2d13 authored by Kristoffer Carlsson on 06 February 2021, 15:49:09 UTC
release-1.6: set VERSION to 1.6-rc1 (#39487)
Tip revision: a58bdd9
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