Skip to content

Commit

Permalink
improve inferrability of create_expr_cache
Browse files Browse the repository at this point in the history
This fixes some invalidations when loading HDF5.jl
  • Loading branch information
ranocha authored and vchuravy committed Oct 8, 2022
1 parent 4c0f8de commit 0340af1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1692,11 +1692,12 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, concrete_d
stderr = internal_stderr, stdout = internal_stdout),
"w", stdout)
# write data over stdin to avoid the (unlikely) case of exceeding max command line size
write(io.in, """
io_in = io.in::PipeEndpoint
write(io_in, """
Base.include_package_for_output($(pkg_str(pkg)), $(repr(abspath(input))), $(repr(depot_path)), $(repr(dl_load_path)),
$(repr(load_path)), $deps, $(repr(source_path(nothing))))
""")
close(io.in)
close(io_in)
return io
end

Expand Down

0 comments on commit 0340af1

Please sign in to comment.