Skip to content
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

In Julia 1.12+, in create_fresh_base_sysimage(), use the BuildSettings mechanism to pass the list of sysimages to include in the fresh (non-incremental) base sysimage #997

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DilumAluthge
Copy link
Member

@DilumAluthge DilumAluthge commented Nov 1, 2024

Ref #989 (comment)

Follow-up to #996.

This uses the BuildSettings mechanism added to Julia 1.12 in JuliaLang/julia#54387.

On Julia 1.11 and earlier, we will continue to use the old method (rewriting sysimg.jl with the list of stdlibs that we want to include in the fresh base sysimage).

@DilumAluthge DilumAluthge force-pushed the dpa/buildsettings-1.12 branch from dc93d91 to de49c5a Compare November 1, 2024 01:55
@DilumAluthge DilumAluthge changed the title In Julia 1.12+, use the BuildSettings mechanism to pass the list of sysimages to include in the fresh (non-incremental) base sysimage In Julia 1.12+, in create_fresh_base_sysimage(), use the BuildSettings mechanism to pass the list of sysimages to include in the fresh (non-incremental) base sysimage Nov 1, 2024
# The --build-settings argument is to pass our BuildSettings file.
# BuildSettings is only available in Julia 1.12+
# https://github.com/JuliaLang/julia/pull/54387
buildsettings_args = `$new_sysimage_source_path "" --build-settings $(build_settings_source_path)`
Copy link
Member

Choose a reason for hiding this comment

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

I would move all the logic for rewriting the sysimage.jl file into the else branch to show that it is dead on newer julia versions and just use the Base.find_source_file("sysimg.jl") as the argument here to show nothing weird is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants