Skip to content

Commit 876cd55

Browse files
authored
Merge pull request #33551 from JuliaLang/tb/libllvm_version_suffix
Strip the 'jl' suffix from Base.libllvm_version.
2 parents 013445f + c74c134 commit 876cd55

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: base/version.jl

+7-1
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)