Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
TypedSlot no longer exists upstream, so we need to use a dummy type
instead on the latest (master) builds of Julia.
  • Loading branch information
topolarity committed Nov 7, 2023
1 parent 203df3f commit d4b1e5e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Libtask.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ export TapedTask, consume, produce
export TArray, tzeros, tfill, TRef # legacy types back compat


const TypedSlot = @static if isdefined(Core, :TypedSlot) # Julia v1.10 removed Core.TypedSlot
Core.TypedSlot
@static if isdefined(Core, :TypedSlot) || isdefined(Core.Compiler, :TypedSlot)
# Julia v1.10 removed Core.TypedSlot
const TypedSlot = @static if isdefined(Core, :TypedSlot)
Core.TypedSlot
else
Core.Compiler.TypedSlot
end
else
Core.Compiler.TypedSlot
struct TypedSlot end # Dummy
end

include("tapedfunction.jl")
Expand Down

0 comments on commit d4b1e5e

Please sign in to comment.