xcode: check clang exists to confim install.
This commit is contained in:
parent
f840c592f0
commit
b0f51ac744
@ -187,6 +187,9 @@ module OS
|
|||||||
|
|
||||||
def detect_version
|
def detect_version
|
||||||
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
|
[MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id|
|
||||||
|
if MacOS.version >= :mavericks
|
||||||
|
next unless File.exist?("#{MAVERICKS_PKG_PATH}/usr/bin/clang")
|
||||||
|
end
|
||||||
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]
|
version = MacOS.pkgutil_info(id)[/version: (.+)$/, 1]
|
||||||
return version if version
|
return version if version
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user