allow the Compiler.jl stdlib to be installed on older version of Julia#56553
Merged
allow the Compiler.jl stdlib to be installed on older version of Julia#56553
Conversation
e6a9ffc to
da54d89
Compare
aviatesk
added a commit
to JuliaDebug/Cthulhu.jl
that referenced
this pull request
Nov 14, 2024
This requires JuliaLang/julia#56553 to be merged, and the new Compiler.jl stdlib to be registered in General beforehand.
aviatesk
added a commit
to JuliaDebug/Cthulhu.jl
that referenced
this pull request
Nov 14, 2024
This requires JuliaLang/julia#56553 to be merged, and the new Compiler.jl stdlib to be registered in General beforehand.
Keno
reviewed
Nov 14, 2024
c4ef8b5 to
2d70790
Compare
Keno
approved these changes
Nov 14, 2024
214f580 to
92d6adc
Compare
Since #56409, Compiler.jl as a standard library has become available. However, for Julia versions prior to this change, even though the stdlib can be installed via Pkg.jl, the precompilation fails due to code compatibility issues. Consequently, when an external package that uses the Compiler stdlib adds Compiler.jl to its Project.toml, the package would stop working on older Julia versions. To address this, this commit adopts the same approach as JET.jl. Specifically, on older Julia versions, a dummy `Compiler` module is defined, allowing dependent packages to switch between using the Compiler.jl stdlib or the previous `Core.Compiler`. While this is a somewhat hacky solution, it should resolve the issue for now.
92d6adc to
da0116a
Compare
aviatesk
commented
Nov 14, 2024
Member
Author
|
Ok, now this PR is ready to be merged. |
Keno
approved these changes
Nov 14, 2024
To ensure that stale precompilation caches aren't used.
a1edc3f to
3d0dc3b
Compare
Member
|
This PR broke the Revise test |
Member
|
I'll fix it, but just be careful merging things that break that test. |
Member
|
aviatesk
added a commit
to JuliaDebug/Cthulhu.jl
that referenced
this pull request
Nov 15, 2024
This requires JuliaLang/julia#56553 to be merged, and the new Compiler.jl stdlib to be registered in General beforehand.
aviatesk
added a commit
to JuliaDebug/Cthulhu.jl
that referenced
this pull request
Nov 15, 2024
This requires JuliaLang/julia#56553 to be merged, and the new Compiler.jl stdlib to be registered in General beforehand.
aviatesk
added a commit
to JuliaDebug/Cthulhu.jl
that referenced
this pull request
Nov 15, 2024
This requires JuliaLang/julia#56553 to be merged, and the new Compiler.jl stdlib to be registered in General beforehand.
aviatesk
added a commit
to JuliaDebug/Cthulhu.jl
that referenced
this pull request
Nov 15, 2024
This requires JuliaLang/julia#56553 to be merged, and the new Compiler.jl stdlib to be registered in General beforehand.
serenity4
pushed a commit
to serenity4/julia
that referenced
this pull request
May 1, 2025
JuliaLang#56553) Since JuliaLang#56409, Compiler.jl as a standard library has become available. However, for Julia versions prior to this change, even though the stdlib can be installed via Pkg.jl, the precompilation fails due to code compatibility issues. Consequently, when an external package that uses the Compiler stdlib adds Compiler.jl to its Project.toml, the package would stop working on older Julia versions. To address this, this commit adopts the same approach as JET.jl. Specifically, on older Julia versions, a dummy `Compiler` module is defined, allowing dependent packages to switch between using the Compiler.jl stdlib or the previous `Core.Compiler`. While this is a somewhat hacky solution, it should resolve the issue for now. Also includes a change to include `ssair/show.jl` in the context of `Compiler` to ensure that stale precompilation caches are not used. And as a result this commit bumps the version of the Compiler.jl standard library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #56409, Compiler.jl as a standard library has become available. However, for Julia versions prior to this change, even though the stdlib can be installed via Pkg.jl, the precompilation fails due to code compatibility issues. Consequently, when an external package that uses the Compiler stdlib adds Compiler.jl to its Project.toml, the package would stop working on older Julia versions.
To address this, this commit adopts the same approach as JET.jl. Specifically, on older Julia versions, a dummy
Compilermodule is defined, allowing dependent packages to switch between using the Compiler.jl stdlib or the previousCore.Compiler. While this is a somewhat hacky solution, it should resolve the issue for now.