diff options
| author | Jack Nagel | 2014-05-01 18:36:46 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-01 18:36:46 -0500 |
| commit | 71055aa073dc7583f0f4b6267f0663088d8f28d1 (patch) | |
| tree | 58c6f2800be0fede365d83d54056985158e44f38 /Library/Homebrew/os/mac/xcode.rb | |
| parent | 564b5df2614c112103766202bcea644ab6851d3a (diff) | |
| download | brew-71055aa073dc7583f0f4b6267f0663088d8f28d1.tar.bz2 | |
Move xctoolchain_path to Xcode module, where it belongs
Diffstat (limited to 'Library/Homebrew/os/mac/xcode.rb')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 41f809835..4c79e3965 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -61,6 +61,10 @@ module OS end end + def toolchain_path + Pathname.new("#{prefix}/Toolchains/XcodeDefault.xctoolchain") if installed? && version >= "4.3" + end + # Ask Spotlight where Xcode is. If the user didn't install the # helper tools and installed Xcode in a non-conventional place, this # is our only option. See: http://superuser.com/questions/390757 |
