Skip to content

Commit

Permalink
fix up the adjustments for v1.12 (#43)
Browse files Browse the repository at this point in the history
* fix up the adjustments for v1.12

* add `@static` annotation
  • Loading branch information
aviatesk authored Apr 2, 2024
1 parent db0095e commit 9dbc852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CassetteOverlay"
uuid = "d78b62d4-37fa-4a6f-acd8-2f19986eb9ee"
authors = ["JuliaHub, Inc. and other contributors"]
version = "0.1.9"
version = "0.1.10"

[deps]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
3 changes: 1 addition & 2 deletions src/CassetteOverlay.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ function overlay_transform!(src::CodeInfo, mi::MethodInstance, nargs::Int)
ssaid += 1
end
prepend!(code, precode)
if VERSION < v"1.12.0-DEV.173"
@static if VERSION < v"1.12.0-DEV.173"
prepend!(src.codelocs, [0 for i = 1:ssaid])
else
di = Core.Compiler.DebugInfoStream(mi, src.debuginfo, length(code))
prepend!(di.codelocs, fill(Int32(0), 3ssaid))
src.debuginfo = Core.DebugInfo(di, length(code))
end
prepend!(src.ssaflags, [0x00 for i = 1:ssaid])
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Test
@testset "simple" include("simple.jl")
@testset "math" include("math.jl")
@testset "misc" include("misc.jl")
if VERSION >= v"1.10.0-DEV.90"
@static if VERSION >= v"1.10.0-DEV.90"
# This interface depends on julia#47749
@testset "abstract" include("abstract.jl")
end
Expand Down

2 comments on commit 9dbc852

@aviatesk
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/104122

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.10 -m "<description of version>" 9dbc852305fa2d68418509c13f3db8507c217600
git push origin v0.1.10

Please sign in to comment.