Skip to content

Commit

Permalink
add sysimage size to make output report
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Oct 29, 2022
1 parent 9f843b8 commit cf7d019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,6 @@ let pre_output_time = time_ns()
# Print report after sysimage has been saved so all time spent can be captured
Base.postoutput() do
output_time = time_ns() - pre_output_time
print("Output ────── "); Base.time_print(output_time); println()
print("Output ────── "); Base.time_print(output_time)
end
end
3 changes: 2 additions & 1 deletion sysimage.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ $$(build_private_libdir)/sys$1-o.a $$(build_private_libdir)/sys$1-bc.a : $$(buil
if ! JULIA_BINDIR=$$(call cygpath_w,$(build_bindir)) WINEPATH="$$(call cygpath_w,$$(build_bindir));$$$$WINEPATH" \
JULIA_NUM_THREADS=1 \
$$(call spawn, $3) $2 -C "$$(JULIA_CPU_TARGET)" --output-$$* $$(call cygpath_w,$$@).tmp $$(JULIA_SYSIMG_BUILD_FLAGS) \
--startup-file=no --warn-overwrite=yes --sysimage $$(call cygpath_w,$$<) $$(call cygpath_w,$$(JULIAHOME)/contrib/generate_precompile.jl) $(JULIA_PRECOMPILE); then \
--startup-file=no --warn-overwrite=yes --sysimage $$(call cygpath_w,$$<) $$(call cygpath_w,$$(JULIAHOME)/contrib/generate_precompile.jl) $(JULIA_PRECOMPILE) \
|| ! $$(call spawn, $3) --startup-file=no --sysimage $$(call cygpath_w,$$<)--sysimage $$(call cygpath_w,$$<) -e 'println(", sysimage size: ", Base.format_bytes(filesize(unsafe_string(Base.JLOptions().image_file))))'; then \
echo '*** This error is usually fixed by running `make clean`. If the error persists$$(COMMA) try `make cleanall`. ***'; \
false; \
fi )
Expand Down

0 comments on commit cf7d019

Please sign in to comment.