https://github.com/JuliaLang/julia
Raw File
Tip revision: adeaa4bc7c5d3ac80679a4233755bfe2970dfc50 authored by Chris Foster on 24 October 2018, 23:56:38 UTC
WIP: Messing around with catching SIG_FPE
Tip revision: adeaa4b
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