os/mac/xcode: clarify latest_version comes from clang.

This commit is contained in:
Mike McQuaid 2019-12-11 13:50:21 +00:00
parent 2d5f6dd79f
commit ebc764e878
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -231,7 +231,7 @@ module OS
end end
end end
def latest_version def latest_clang_version
# As of Xcode 8 CLT releases are no longer in sync with Xcode releases # As of Xcode 8 CLT releases are no longer in sync with Xcode releases
# on the older supported platform for that Xcode release, i.e there's no # on the older supported platform for that Xcode release, i.e there's no
# CLT package for 10.11 that contains the Clang version from Xcode 8. # CLT package for 10.11 that contains the Clang version from Xcode 8.
@ -266,7 +266,7 @@ module OS
clang_version = detect_clang_version clang_version = detect_clang_version
return false unless clang_version return false unless clang_version
::Version.new(clang_version) < latest_version ::Version.new(clang_version) < latest_clang_version
end end
def detect_clang_version def detect_clang_version