aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorWilliam Woodruff2014-07-07 14:13:18 -0400
committerMisty De Meo2014-07-07 13:39:49 -0700
commit822e34c78e3a069e77c7cccf69b84b8866add94e (patch)
tree7c15fcc5231bd92575446c66c38edcf68dd02e8e /Library
parent99ebdc25459fa58289d15003aadff4d75f2c2382 (diff)
downloadhomebrew-822e34c78e3a069e77c7cccf69b84b8866add94e.tar.bz2
chicken: fix build on older Xcodes
Closes #30713. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/chicken.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/chicken.rb b/Library/Formula/chicken.rb
index 08665ffa6..2643e9974 100644
--- a/Library/Formula/chicken.rb
+++ b/Library/Formula/chicken.rb
@@ -18,6 +18,11 @@ class Chicken < Formula
# Chicken uses a non-standard var. for this
args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"]
args << "ARCH=x86-64" if MacOS.prefer_64_bit?
+ # necessary to fix build on older Xcodes due to different path
+ if MacOS::Xcode.installed?
+ args << "XCODE_DEVELOPER=#{MacOS::Xcode.prefix}"
+ args << "XCODE_TOOL_PATH=#{MacOS::Xcode.toolchain_path}/usr/bin"
+ end
system "make", *args
system "make", "install", *args
end