Skip to content

Commit

Permalink
Simplify loading code from stdin during precompilation. (JuliaLang#43853
Browse files Browse the repository at this point in the history
)
  • Loading branch information
maleadt authored and N5N3 committed Jan 24, 2022
1 parent e836aed commit 2d50bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, concrete_d
--startup-file=no --history-file=no --warn-overwrite=yes
--color=$(have_color === nothing ? "auto" : have_color ? "yes" : "no")
$trace
--eval 'eval(Meta.parse(read(stdin,String)))'`, stderr = internal_stderr, stdout = internal_stdout),
-`, 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, """
Expand Down

0 comments on commit 2d50bfa

Please sign in to comment.