aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
authorMike McQuaid2017-11-05 19:11:50 +0000
committerGitHub2017-11-05 19:11:50 +0000
commitffe523a7a8ec5378577f154d48f1caa22dcfac34 (patch)
treed8a25eb02cfbc6a3ab6fdea7cce16d78b326507a /Library/Homebrew/compat
parentbef4213ffc2d52ca38a83c24178c3c7f86273eb9 (diff)
parent195f77abb0138b4c387ad6dd451ddf9c49152b26 (diff)
downloadbrew-ffe523a7a8ec5378577f154d48f1caa22dcfac34.tar.bz2
Merge pull request #3422 from MikeMcQuaid/null-versions
mac/xcode: compare with existing Version class.
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/macos.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/macos.rb b/Library/Homebrew/compat/macos.rb
index 3acd2f9ef..1f2c651c5 100644
--- a/Library/Homebrew/compat/macos.rb
+++ b/Library/Homebrew/compat/macos.rb
@@ -1,5 +1,10 @@
require "development_tools"
+if OS.mac?
+ MACOS_FULL_VERSION = OS::Mac.full_version.to_s.freeze
+ MACOS_VERSION = OS::Mac.version.to_s.freeze
+end
+
module OS
module Mac
module_function