diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb index 4bfe7174b1..4893ff5ec0 100644 --- a/Library/Homebrew/compat.rb +++ b/Library/Homebrew/compat.rb @@ -13,3 +13,4 @@ require "compat/keg" require "compat/pathname" require "compat/dependency_collector" require "compat/language/haskell" +require "compat/xcode" diff --git a/Library/Homebrew/compat/xcode.rb b/Library/Homebrew/compat/xcode.rb new file mode 100644 index 0000000000..3dd7f021cb --- /dev/null +++ b/Library/Homebrew/compat/xcode.rb @@ -0,0 +1,11 @@ +module OS + module Mac + module Xcode + extend self + + def provides_autotools? + version < "4.3" + end + end + end +end diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index bb3873687d..f6447fbc82 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -138,10 +138,6 @@ module OS end end - def provides_autotools? - version < "4.3" - end - def provides_gcc? version < "4.3" end