Skip to content

Commit 7f5145f

Browse files
committed
Disable ORCv2 checks on LLVM 12 + asserts.
1 parent edf45e1 commit 7f5145f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/version.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ function runtime_version()
1818
VersionNumber(m[:version])
1919
end
2020
end
21+
22+
function is_asserts()
23+
Libdl.dlopen(libllvm) do handle
24+
Libdl.dlsym(handle, "_ZN4llvm23EnableABIBreakingChecksE"; throw_error=false) !== nothing
25+
end
26+
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ include("utils.jl")
6868
if LLVM.has_orc_v1()
6969
include("orc.jl")
7070
end
71-
if LLVM.has_orc_v2()
71+
if LLVM.has_orc_v2() && !(LLVM.version() < v"13" && LLVM.is_asserts())
7272
include("orcv2.jl")
7373
end
7474

0 commit comments

Comments
 (0)