Skip to content
Snippets Groups Projects
Unverified Commit 2d5f6dd7 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

os/mac/xcode: improve CLT clang version detection.

parent 8d3e7cf0
No related branches found
No related tags found
No related merge requests found
......@@ -280,6 +280,10 @@ module OS
version_output[/clang-(\d+\.\d+\.\d+(\.\d+)?)/, 1]
end
def detect_version_from_clang_version
detect_clang_version&.sub(/^(\d+)00\./, "\\1.")
end
# Version string (a pretty long one) of the CLT package.
# Note, that different ways to install the CLTs lead to different
# version numbers.
......@@ -300,7 +304,7 @@ module OS
return version if version
end
detect_clang_version
detect_version_from_clang_version
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment