https://github.com/JuliaLang/julia
Raw File
Tip revision: 8fe082cee965883989b382bc9dd3434649377e4c authored by Jameson Nash on 01 February 2022, 19:49:18 UTC
llvm-cpufeatures: get TargetMachine from the MachineModuleInfoWrapperPass pass
Tip revision: 8fe082c
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