Skip to content

Commit 25947da

Browse files
committed
fix compat check
1 parent 69a08b7 commit 25947da

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/JET.jl

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ using Base: Compiler as CC
3535
# precompile when their tests are run, instead there will be test failures when JET is
3636
# used (but potentially other tests can at least run).
3737
@static if JET_LOADABLE
38-
if VERSION < v"1.12.0-beta1.11"
38+
@static if VERSION v"1.12.0-beta1.11"
3939
include("JETBase.jl")
40-
end
41-
function __init__()
42-
@warn """
43-
The latest version of JET is incompatible with Julia versions earlier than `v"1.12.0-beta1.11"`.
44-
To build a compatible Julia version, follow the instructions at
45-
https://github.com/aviatesk/JET.jl/blob/master/CHANGELOG.md#0103.
46-
"""
40+
else
41+
function __init__()
42+
@warn """
43+
The latest version of JET is incompatible with Julia versions earlier than `v"1.12.0-beta1.11"`.
44+
To build a compatible Julia version, follow the instructions at
45+
https://github.com/aviatesk/JET.jl/blob/master/CHANGELOG.md#0103.
46+
"""
47+
end
4748
end
4849
else
4950
include("JETEmpty.jl")

0 commit comments

Comments
 (0)