Skip to content

Commit

Permalink
Merge pull request #193 from JuliaLabs/avi/update
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Aug 18, 2021
2 parents 21f93e3 + 9949498 commit 224659a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Cassette"
uuid = "7057c7e9-c182-5462-911a-8362d720325c"
version = "0.3.7"
version = "0.3.8"

[compat]
julia = "1"
Expand Down
11 changes: 7 additions & 4 deletions src/overdub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ mutable struct Reflection
code_info::CodeInfo
end

if VERSION < v"1.1.0-DEV.762"
@static if VERSION < v"1.1.0-DEV.762"
copy_code_info(code_info) = Core.Compiler.copy_code_info(code_info)
else
copy_code_info(code_info) = copy(code_info)
end

if VERSION < v"1.2.0-DEV.573"
specialize_method(method, metharg, methsp, world, force) = Core.Compiler.code_for_method(method, metharg, methsp, world, force)
@static if VERSION v"1.8.0-DEV.369"
# https://github.com/JuliaLang/julia/pull/41920
specialize_method(method, metharg, methsp, world, preexisting) = Core.Compiler.specialize_method(method, metharg, methsp; preexisting)
elseif VERSION < v"1.2.0-DEV.573"
specialize_method(method, metharg, methsp, world, preexisting) = Core.Compiler.code_for_method(method, metharg, methsp, world, preexisting)
else
specialize_method(method, metharg, methsp, world, force) = Core.Compiler.specialize_method(method, metharg, methsp, force)
specialize_method(method, metharg, methsp, world, preexisting) = Core.Compiler.specialize_method(method, metharg, methsp, preexisting)
end

function overdubbed_iterate(ctx, iterate)
Expand Down

2 comments on commit 224659a

@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/43102

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.3.8 -m "<description of version>" 224659a42f7c4ae6ff8697c8b85e6a357d47ade7
git push origin v0.3.8

Please sign in to comment.