Skip to content

trimming: Remove init.c from test #58197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025

Conversation

topolarity
Copy link
Member

This accidentally diverged when #58141 was merged without adjusting the test to match (these tests shouldn't be re-implementing the juliac link step anyway, but they currently do)

Unfortunately, this hid a bug where jl_pathname_for_handle does not understand the main executable.

@topolarity topolarity requested a review from gbaraldi April 22, 2025 16:52
@topolarity
Copy link
Member Author

this hid a bug where jl_pathname_for_handle does not understand the main executable.

@gbaraldi unfortunately --trim regressed as part of #58141 due to this

@topolarity topolarity added trimming Issues with trimming functionality or PR's relevant to its performance/functionality backport 1.12 Change should be backported to release-1.12 labels Apr 22, 2025
@JeffBezanson
Copy link
Member

We will still need this for executables though, if we want the nicer @main interface. With auto-init you can write main in julia, but you would have to set up the arguments array yourself which is not very convenient.

@topolarity
Copy link
Member Author

We will still need this for executables though, if we want the nicer @main interface. With auto-init you can write main in julia, but you would have to set up the arguments array yourself which is not very convenient.

This PR is just to fix that CI has diverged from juliac.jl

Our "Hello, world" for executables is broken right now, but CI thinks it is fine because it is building the executable differently.

This accidentally diverged when JuliaLang#58141 was merged without adjusting the
test to match (these tests shouldn't be re-implementing the `juliac`
link step anyway, but they currently do)

Unfortunately, this hid a bug where `jl_pathname_for_handle` does not
understand the main executable.
@topolarity topolarity force-pushed the ct/rm-init-trimming-test branch from 1b45fae to ff4e43c Compare May 2, 2025 00:44
@topolarity
Copy link
Member Author

Now that #58231 has landed, this should be viable

@topolarity topolarity merged commit 2dd37c9 into JuliaLang:master May 2, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.12 Change should be backported to release-1.12 trimming Issues with trimming functionality or PR's relevant to its performance/functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants