Skip to content

Commit c74c134

Browse files
committed
Strip the 'jl' suffix from Base.libllvm_version.
Ref #33058
1 parent e0f9045 commit c74c134

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

base/version.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,13 @@ catch e
237237
VersionNumber(0)
238238
end
239239

240-
const libllvm_version = VersionNumber(libllvm_version_string)
240+
const libllvm_version = if endswith(libllvm_version_string, "jl")
241+
# strip the "jl" SONAME suffix (JuliaLang/julia#33058)
242+
# (LLVM does never report a prerelease version anyway)
243+
VersionNumber(libllvm_version_string[1:end-2])
244+
else
245+
VersionNumber(libllvm_version_string)
246+
end
241247

242248
function banner(io::IO = stdout)
243249
if GIT_VERSION_INFO.tagged_commit

0 commit comments

Comments
 (0)