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

Create method for accessing Xcode version.

parent dae5a447
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,7 @@ module Homebrew extend self
end
def xcode_version
`xcodebuild -version 2>&1` =~ /Xcode (\d(\.\d)*)/
$1
@xcode_version || MacOS.xcode_version
end
def llvm_recommendation
......
......@@ -271,6 +271,11 @@ module MacOS extend self
end
end
def xcode_version
`xcodebuild -version 2>&1` =~ /Xcode (\d(\.\d)*)/
$1
end
def llvm_build_version
unless xcode_prefix.to_s.empty?
llvm_gcc_path = xcode_prefix/"usr/bin/llvm-gcc"
......
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