Skip to content

Conversation

JeffBezanson
Copy link
Member

No description provided.


jl_queue_for_serialization(s, m->usings_backedges);
jl_queue_for_serialization(s, m->scanned_methods);
if (jl_options.trim || jl_options.strip_ir) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this should be tied to strip-ir or trim, but either seems ok?

hello_exe = joinpath(@__DIR__, "hello" * exe_suffix)
@test readchomp(`$hello_exe`) == "Hello, world!"
@test filesize(hello_exe) < filesize(unsafe_string(Base.JLOptions().image_file))/10
@test filesize(hello_exe) < 2000000
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me the size is now 1633392. Not sure if this holds on all platforms but we'll find out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure we only test trimming on Linux x86-64, but I'm very happy to have this test tightened anyway

@JeffBezanson JeffBezanson merged commit 8fd3fb1 into master Mar 26, 2025
7 checks passed
@JeffBezanson JeffBezanson deleted the jb/trimnewmodfields branch March 26, 2025 22:50
@KristofferC KristofferC added the backport 1.12 Change should be backported to release-1.12 label Mar 31, 2025
KristofferC pushed a commit that referenced this pull request Mar 31, 2025
@KristofferC KristofferC mentioned this pull request Apr 4, 2025
51 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants