File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -595,10 +595,15 @@ end
595
595
596
596
@eval _overdub_fallback ($ OVERDUB_CONTEXT_NAME, $ OVERDUB_ARGUMENTS_NAME... ) = fallback ($ OVERDUB_CONTEXT_NAME, $ OVERDUB_ARGUMENTS_NAME... )
597
597
598
- const OVERDUB_FALLBACK = begin
599
- code_info = reflect ((typeof (_overdub_fallback), Any, Vararg{Any})). code_info
600
- code_info. inlineable = true
601
- code_info
598
+ @static if Base. VERSION >= v " 1.12-"
599
+ # Make Cassette.jl loadable (but not usable) on Julia 1.12.
600
+ @warn " Cassette.jl may not work on this version of Julia" Base. VERSION
601
+ else
602
+ const OVERDUB_FALLBACK = begin
603
+ code_info = reflect ((typeof (_overdub_fallback), Any, Vararg{Any})). code_info
604
+ code_info. inlineable = true
605
+ code_info
606
+ end
602
607
end
603
608
604
609
# `args` is `(typeof(original_function), map(typeof, original_args_tuple)...)`
You can’t perform that action at this time.
0 commit comments