Skip to content

Commit 196bde6

Browse files
authored
Warn about julia 1.12 (#2698)
* Warn about julia 1.12 * Update Enzyme.jl * Revise warning for Julia 1.12 support Updated warning message regarding Julia version support.
1 parent f5c3782 commit 196bde6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Enzyme.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,4 +1569,20 @@ if VERSION < v"1.12.0"
15691569
include("precompile.jl")
15701570
end
15711571

1572+
function __init__()
1573+
@static if VERSION v"1.12-"
1574+
if ccall(:jl_generating_output, Cint, ()) == 1
1575+
@warn """
1576+
Enzyme.jl support for Julia 1.12 is presently in progress.
1577+
For the time being we recommend using 1.11 or LTS (1.10).
1578+
1579+
For latest updates, check the status of support for Julia 1.12+ at
1580+
https://github.com/EnzymeAD/Enzyme.jl/issues/2699.
1581+
""" maxlog = 1
1582+
end
1583+
end
1584+
1585+
return nothing
1586+
end
1587+
15721588
end # module

0 commit comments

Comments
 (0)