From 822e34c78e3a069e77c7cccf69b84b8866add94e Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 7 Jul 2014 14:13:18 -0400 Subject: chicken: fix build on older Xcodes Closes #30713. Signed-off-by: Misty De Meo --- Library/Formula/chicken.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3