https://github.com/JuliaLang/julia
Raw File
Tip revision: c8d2123834098fc74edfe74a2a30bf9f948b8bc1 authored by Kristoffer Carlsson on 23 February 2018, 18:11:56 UTC
fix init in REPL
Tip revision: c8d2123
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, hton(Int32(sizeof(filename))))
        write(io, filename)
        write(io, hton(UInt64(sizeof(src))))
        write(io, src)
    end
    write(io, Int32(0))
end
back to top