Skip to content

Conversation

@fatteneder
Copy link
Contributor

The following PRs have added extra arguments to two C methods that are used by info_cachefile, which this PR fixes.

- JuliaLang/julia#52123: Added the
  `int ignore_native` argument to jl_restore_package_image_from_file
- JuliaLang/julia#49538: Added the
  `const char *pkgname` argument to jl_restore_package_image_from_file
  and jl_restore_incremental.
if isocache
sv = ccall(:jl_restore_package_image_from_file, Any, (Cstring, Any, Cint), path, depmods, true)
@static if VERSION >= v"1.11.0-DEV.922" # https://github.com/JuliaLang/julia/pull/52123
sv = ccall(:jl_restore_package_image_from_file, Any, (Cstring, Any, Cint, Cstring, Cint), path, depmods, true, pkg.name, false)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@IanButterworth Is using ignore_native = false for the last argument correct?

@timholy
Copy link
Owner

timholy commented Mar 18, 2025

Merged into branch julia-1.11. main has already moved on to 1.12 (sorry for my inattention). There will be a v"1.1.1" release with this contribution in it. Many thanks!

@timholy timholy closed this Mar 18, 2025
@timholy
Copy link
Owner

timholy commented Mar 18, 2025

Ah wait, this aspect of my changes got undone, so we could use the same changes on 1.12. I'll add them and credit you.

@timholy timholy mentioned this pull request Mar 19, 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.

2 participants